@font-face { font-family: "Studio Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/noto-sans-sc-400.woff2") format("woff2"); }
@font-face { font-family: "Studio Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/noto-sans-sc-500.woff2") format("woff2"); }
@font-face { font-family: "Studio Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/noto-sans-sc-600.woff2") format("woff2"); }
@font-face { font-family: "Studio Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/noto-sans-sc-700.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --night: #070b18;
  --night-soft: #0a1020;
  --surface: #0e1729;
  --surface-raise: #12203a;
  --ink: #eaf1fb;
  --muted: #93a4c4;
  --muted-dim: #7d8caa;
  --cyan: #7cfbff;
  --cyan-deep: #35c8ee;
  --amber: #ff8a2b;
  --line: rgba(140, 180, 235, .16);
  --line-strong: rgba(140, 180, 235, .28);
  --page-width: 1180px;
  --motion: 200ms ease;
  font-family: "Studio Sans", "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--night);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100svh;
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(circle at 78% 18%, rgba(53, 200, 238, .16), transparent 46%),
    radial-gradient(circle at 64% 26%, rgba(255, 138, 43, .12), transparent 38%),
    linear-gradient(180deg, #0a1224 0%, var(--night) 58%, #050813 100%);
}
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, dt, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 3px; }
main:focus { outline: none; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 10px 20px; border-radius: 6px; background: var(--cyan); color: #04121f; font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(7, 11, 24, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; max-width: 1420px; margin: auto; padding: 0 40px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 14px; padding: 10px 0; white-space: nowrap; }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 11px; box-shadow: 0 0 0 1px rgba(124, 251, 255, .18), 0 8px 24px rgba(4, 10, 24, .7); }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: .01em; }
.brand-en { color: var(--muted-dim); font-size: 11px; line-height: 1.25; font-weight: 500; letter-spacing: .07em; }
.navigation { display: flex; align-self: stretch; gap: 38px; }
.nav-link { display: flex; align-items: center; position: relative; padding: 6px 4px 2px; font-size: 16px; font-weight: 500; color: var(--muted); transition: color var(--motion); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--cyan-deep)); opacity: 0; transition: opacity var(--motion); }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { opacity: 1; }

.page-inner { width: calc(100% - 160px); max-width: var(--page-width); margin-inline: auto; }
.page-panel { padding: 96px 0 110px; }
.eyebrow { color: var(--cyan-deep); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.page-panel h1 { margin-top: 22px; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.24; font-weight: 700; letter-spacing: -.02em; }
.section-lead { margin-top: 24px; max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.9; text-wrap: pretty; }

/* Home */
.home-panel { padding-top: 92px; padding-bottom: 120px; min-height: calc(100svh - 88px); display: flex; align-items: center; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 84px; }
.home-lead { margin-top: 30px; max-width: 600px; color: var(--muted); font-size: 18px; line-height: 1.95; text-wrap: pretty; }
.home-points { margin-top: 52px; display: grid; gap: 22px; max-width: 620px; }
.home-point { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.home-point dt { color: var(--ink); font-size: 16px; font-weight: 600; }
.home-point dd { color: var(--muted); font-size: 15px; line-height: 1.85; }
.home-mark { position: relative; }
.home-mark::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgba(53, 200, 238, .22), transparent 68%); filter: blur(6px); }
.home-mark img { position: relative; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 0 0 1px rgba(124, 251, 255, .16), 0 40px 90px rgba(3, 8, 20, .8); }

/* Projects */
.section-head h1 { margin-top: 18px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 22px; margin-top: 56px; }
.project-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgba(18, 32, 58, .95), rgba(10, 16, 32, .95)); transition: border-color var(--motion), transform var(--motion); }
.project-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #0b1220; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.project-card:hover .card-media img { transform: scale(1.025); }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 24px 26px 26px; }
.project-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.project-name { font-size: 24px; font-weight: 700; letter-spacing: .01em; }
.status { padding: 3px 10px; border: 1px solid rgba(255, 138, 43, .45); border-radius: 999px; color: #ffb679; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.status.is-live { border-color: rgba(124, 251, 255, .45); color: var(--cyan); }
.project-desc { color: var(--muted); font-size: 15px; line-height: 1.85; }
.project-meta { margin-top: auto; padding-top: 8px; color: var(--muted-dim); font-size: 13px; letter-spacing: .04em; }
.project-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--cyan-deep); font-size: 14px; }
.project-card:hover .project-more { color: var(--cyan); }
.project-note { margin-top: 34px; color: var(--muted-dim); font-size: 14px; }

/* Contact */
.contact-list { margin-top: 54px; display: grid; gap: 0; max-width: 720px; }
.contact-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: baseline; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-label { color: var(--muted-dim); font-size: 14px; letter-spacing: .12em; }
.contact-value { font-size: clamp(18px, 2vw, 23px); font-weight: 500; letter-spacing: .01em; overflow-wrap: anywhere; transition: color var(--motion); }
.contact-value:hover { color: var(--cyan); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background var(--motion), border-color var(--motion), color var(--motion); }
.button-primary { background: linear-gradient(120deg, var(--cyan), var(--cyan-deep)); color: #04121f; }
.button-primary:hover { filter: brightness(1.08); }
.button-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.button-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.copy-status { margin-top: 18px; min-height: 26px; color: var(--muted-dim); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1420px; margin: auto; padding: 26px 40px; color: var(--muted-dim); font-size: 14px; }
.footer-brand { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.footer-en { font-size: 12px; letter-spacing: .05em; color: var(--muted-dim); }
.footer-mail { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.footer-mail:hover { color: var(--cyan); }

/* Project detail pages */
.detail-panel { padding-top: 72px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 14px; transition: color var(--motion); }
.back-link:hover { color: var(--cyan); }
.detail-head h1 { margin-top: 18px; font-size: clamp(34px, 4.6vw, 56px); }
.detail-lead { margin-top: 22px; max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.95; text-wrap: pretty; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts div { display: flex; flex-direction: column; gap: 4px; }
.detail-facts dt { color: var(--muted-dim); font-size: 12px; letter-spacing: .14em; }
.detail-facts dd { margin: 0; color: var(--ink); font-size: 15px; }
.detail-shot { margin: 48px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #0b1220; }
.detail-shot img { width: 100%; height: auto; }
.detail-shot figcaption { padding: 13px 20px; border-top: 1px solid var(--line); color: var(--muted-dim); font-size: 13px; }
.detail-section { margin-top: 68px; }
.detail-section h2 { font-size: 24px; font-weight: 700; letter-spacing: .01em; }
.detail-section > p { margin-top: 16px; max-width: 760px; color: var(--muted); font-size: 16px; line-height: 1.95; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; margin-top: 26px; }
.feature-item { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, rgba(18, 32, 58, .85), rgba(10, 16, 32, .85)); }
.feature-item h3 { font-size: 16px; font-weight: 600; }
.feature-item p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.detail-list { display: grid; gap: 12px; margin-top: 24px; max-width: 840px; }
.detail-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.detail-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-deep); }
.detail-list strong { color: var(--ink); font-weight: 600; }
.detail-list code, .feature-item code { padding: 1px 6px; border-radius: 5px; background: rgba(124, 251, 255, .09); color: var(--cyan-deep); font-size: .92em; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 26px; }
.shot-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0b1220; }
.shot-grid img { display: block; width: 100%; height: auto; }
.shot-grid figcaption { padding: 11px 15px; border-top: 1px solid var(--line); color: var(--muted-dim); font-size: 13px; }
.shot-narrow { max-width: 420px; }
.code-block { margin-top: 22px; padding: 20px 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #08111f; color: #cfe0f5; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.8; tab-size: 2; }
.code-block code { padding: 0; background: none; color: inherit; font-size: inherit; }
.code-caption { margin-top: 10px; color: var(--muted-dim); font-size: 13px; }
.step-list { display: grid; gap: 12px; margin-top: 26px; max-width: 880px; counter-reset: step; }
.step-list li { position: relative; padding: 18px 22px 18px 64px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, rgba(18, 32, 58, .7), rgba(10, 16, 32, .7)); color: var(--muted); font-size: 15px; line-height: 1.85; counter-increment: step; }
.step-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 18px; color: var(--cyan-deep); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.step-list strong { color: var(--ink); font-weight: 600; }
.detail-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 30px; border-top: 1px solid var(--line); }
.detail-note { color: var(--muted-dim); font-size: 14px; }

@media (max-width: 1050px) {
  .header-inner { padding: 0 28px; min-height: 80px; }
  .navigation { gap: 24px; }
  .page-inner { width: calc(100% - 80px); }
  .home-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; }
  .home-point { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 820px) {
  .home-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .home-mark { order: -1; width: min(280px, 68%); }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 128px; }
  .header-inner { display: block; padding: 16px 20px 0; min-height: 0; }
  .brand { gap: 10px; padding: 0; }
  .brand-mark { width: 34px; height: 34px; border-radius: 8px; }
  .brand-name { font-size: 18px; }
  .brand-en { font-size: 10px; letter-spacing: .05em; }
  .navigation { margin-top: 8px; gap: 10px; justify-content: space-between; }
  .nav-link { padding: 12px 2px 14px; min-height: 46px; font-size: 15px; }
  .page-inner { width: calc(100% - 40px); }
  .page-panel { padding: 56px 0 72px; }
  .home-panel { min-height: 0; padding-top: 44px; }
  .home-mark { width: min(220px, 62%); }
  .home-lead { margin-top: 22px; font-size: 16px; }
  .home-points { margin-top: 36px; gap: 18px; }
  .home-point { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: 16px; }
  .section-lead { font-size: 15px; }
  .project-card { padding: 24px 22px 26px; }
  .contact-item { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 20px; }
  .detail-panel { padding-top: 44px; }
  .detail-facts { gap: 16px 32px; }
  .detail-section { margin-top: 48px; }
  .detail-section h2 { font-size: 21px; }
  .project-grid, .feature-grid, .shot-grid { grid-template-columns: minmax(0, 1fr); }
  .back-link { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
