/* ============================================================
   3D Web Experience v3 — 「静かな技術」
   骨格参照: triorb.co.jp（黒FV / 白セクション / 単色ブルー / 1px罫線）
   ============================================================ */

:root {
  --white: #ffffff;
  --ink: #14161a;
  --ink-sub: #595e66;
  --line: #e4e6e9;
  --black: #060709;
  --blue: #2733c9;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 112px; }
body {
  font-family: var(--font-ja);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-weight: 500; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: background .4s ease;
}
.site-header.is-light {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .02em;
  color: #fff;
  transition: color .4s ease;
}
.logo span { font-weight: 300; }
.site-header.is-light .logo { color: var(--ink); }
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  font-family: var(--font-en);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .03em;
  color: rgba(255,255,255,.85);
  transition: color .4s ease, opacity .2s;
}
.site-nav a:hover { opacity: .55; }
.site-header.is-light .site-nav a { color: var(--ink); }
.nav-contact { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: var(--black);
  overflow: hidden;
  color: #fff;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner {
  position: absolute;
  left: 10.5%;
  top: 30%;
}
.hero-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(48px, 5.6vw, 80px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.ht-line { display: block; }
.ht-indent { padding-left: .8em; }
.hero-sub {
  margin-top: 42px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 2.1;
  color: rgba(255,255,255,.86);
  letter-spacing: .04em;
}
.hero-caption {
  position: absolute;
  left: 10.5%;
  bottom: 7%;
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .04em;
  color: rgba(255,255,255,.45);
}
.hero-note {
  position: absolute;
  right: 56px;
  bottom: 48px;
  display: block;
  width: 280px;
  padding: 20px 22px;
  border: 1px solid #30333d;
  background: rgba(10,11,15,.92);
  transition: border-color .3s, opacity .4s;
}
.hero-note.is-hidden { opacity: 0; pointer-events: none; }
.hero-note:hover { border-color: rgba(255,255,255,.5); }
.hero-note-label { display: block; font-size: 13px; color: rgba(255,255,255,.9); }
.hero-note-date {
  display: block;
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

/* ---------- common section ---------- */
.section-head {
  padding: 100px 10.5% 48px;
}
.section-en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: .01em;
}
.section-ja {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-sub);
  letter-spacing: .08em;
}

/* ---------- service ---------- */
.services { background: var(--white); }
.service-block {
  display: grid;
  grid-template-columns: 57% 1fr;
  gap: 0 72px;
  align-items: center;
  margin-bottom: 130px;
}
.service-block:last-child { margin-bottom: 0; padding-bottom: 130px; }
.visual-spec {
  margin-top: 14px;
  padding-left: 2px;
  font-size: 11.5px;
  line-height: 1.9;
  color: #9ba0a8;
  letter-spacing: .04em;
}
.service-visual video,
.service-visual .cost-chart {
  width: 100%;
  display: block;
}
.service-visual video {
  height: 460px;
  object-fit: cover;
  /* 世界観統一: マゼンタ寄りの素材を藍色トーンへ寄せる */
  filter: hue-rotate(38deg) saturate(0.62) brightness(0.94);
}
.service-visual .scroll-demo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-text { padding-right: 10.5%; }
.service-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 12.5px;
  color: var(--ink-sub);
  letter-spacing: .05em;
}
.label-line { width: 28px; height: 1px; background: var(--blue); display: inline-block; }
.service-text h3 {
  margin-top: 26px;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .02em;
}
.service-desc {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--ink-sub);
  line-height: 2.05;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: .06em;
  transition: background .3s;
}
.btn-pill:hover { background: var(--blue); }
.btn-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }

/* scroll demo (Service 02) */
.demo-visual { background: #f4f5f7; }
.scroll-demo { height: 460px; position: relative; display: flex; align-items: center; justify-content: center; }
.sd-stage { perspective: 900px; }
.sd-cube {
  width: 230px; height: 230px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(28deg);
}
.sd-cube i {
  position: absolute; inset: 0;
  border: 1.25px solid rgba(39,51,201,.72);
  background: rgba(39,51,201,.06);
}
.sd-cube i:nth-child(5) { background: rgba(39,51,201,.14); }
.sd-cube i:nth-child(2), .sd-cube i:nth-child(4) { background: rgba(39,51,201,.03); }
.sd-caption {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-sub);
  letter-spacing: .05em;
}

/* workflow diagram (Service 03) */
.chart-visual { background: transparent; }
.workflow {
  position: relative;
  height: 460px;
  background: #f4f5f7;
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  padding: 0 6%;
}
.wf-stage {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 24px 26px;
  text-align: center;
}
.wf-ai { border: 1px solid var(--blue); background: #f8f9ff; }
.wf-role {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-sub);
  border: 1px solid var(--line);
  padding: 2px 10px;
}
.wf-ai .wf-role { color: #fff; background: var(--blue); border-color: var(--blue); }
.wf-name { margin-top: 16px; font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.wf-desc { margin-top: 10px; font-size: 11.5px; line-height: 1.85; color: var(--ink-sub); }
.wf-arrow {
  height: 1px;
  background: #c6c9cf;
  position: relative;
}
.wf-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  border-left: 6px solid #c6c9cf;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}
.wf-note {
  position: absolute;
  bottom: 26px; left: 6%; right: 6%;
  font-size: 11px;
  line-height: 1.7;
  color: #737986;
}
.vs-num { color: var(--blue); font-family: var(--font-en); }
.visual-spec { display: flex; gap: 22px; }

/* ---------- works ---------- */
.works { border-top: 1px solid var(--line); }
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 0 10.5%;
  padding-bottom: 130px;
}
.work-card { border: 1px solid var(--line); }
.work-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.85);
}
.work-card:nth-child(2) .work-thumb img { filter: hue-rotate(38deg) saturate(.62) brightness(.94); }
.work-num {
  margin: 26px 28px 0;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--blue);
}
.work-card h3 { margin: 10px 28px 0; font-size: 18px; font-weight: 700; letter-spacing: .03em; }
.work-desc { margin: 12px 28px 0; font-size: 13px; color: var(--ink-sub); line-height: 1.95; }
.work-record {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px 20px;
  margin: 20px 28px 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
}
.work-record dt { color: #9ba0a8; }
.work-record dd { color: var(--ink-sub); }

/* ---------- price ---------- */
.price { border-top: 1px solid var(--line); }
.price-table { margin: 0 10.5%; border-top: 1px solid var(--ink); }
.pt-row {
  display: grid;
  grid-template-columns: 170px 1fr 140px 180px;
  gap: 32px;
  align-items: baseline;
  padding: 27px 16px;
  border-bottom: 1px solid var(--line);
}
.pt-recommended { background: #f4f6ff; }
.pt-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-ja);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  vertical-align: 3px;
}
.pt-head {
  padding: 14px 4px;
  font-size: 11.5px;
  color: var(--ink-sub);
  letter-spacing: .08em;
}
.pt-head p { font-size: 11.5px; }
.pt-name { font-family: var(--font-en); font-size: 19px; font-weight: 400; }
.pt-desc { font-size: 13.5px; color: var(--ink-sub); line-height: 1.9; }
.pt-time { font-size: 13px; color: var(--ink-sub); }
.pt-amount { font-family: var(--font-en); font-size: 21px; letter-spacing: .01em; text-align: right; }
.pt-amount span { font-size: 13px; color: var(--ink-sub); margin-left: 2px; }
.pt-amount-h { text-align: right; }
.price-note {
  margin: 26px 10.5% 0;
  padding-bottom: 150px;
  font-size: 12.5px;
  color: var(--ink-sub);
}

/* ---------- process ---------- */
.process { border-top: 1px solid var(--line); }
.process-list { list-style: none; margin: 0 10.5%; border-top: 1px solid var(--ink); padding-bottom: 170px; }
.process-list li {
  display: grid;
  grid-template-columns: 90px 1fr 160px;
  gap: 32px;
  align-items: baseline;
  padding: 38px 4px;
  border-bottom: 1px solid var(--line);
}
.pr-num { font-family: var(--font-en); font-size: 13px; color: var(--blue); }
.pr-body h3 { font-size: 17px; font-weight: 700; letter-spacing: .03em; }
.pr-body p { margin-top: 6px; font-size: 13.5px; color: var(--ink-sub); }
.pr-time { text-align: right; font-size: 12.5px; color: var(--ink-sub); }
.pr-deliverable { margin-top: 10px; font-size: 11.5px; color: #8a8e98; }
.pt-cond { display: inline-block; margin-top: 6px; font-size: 11.5px; color: #8a8e98; }

/* ---------- contact ---------- */
.contact {
  background: var(--black);
  color: #fff;
  padding: 170px 10.5%;
}
.contact-title {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .03em;
}
.contact-sub {
  margin-top: 28px;
  font-size: 14.5px;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  line-height: 2.1;
}
.btn-pill-light { background: #fff; color: var(--ink); }
.btn-pill-light .btn-dot { background: var(--ink); }
.btn-pill-light:hover { background: var(--blue); color: #fff; }
.btn-pill-light:hover .btn-dot { background: #fff; }
.contact-note { margin-top: 20px; font-size: 11.5px; color: rgba(255,255,255,.4); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.5);
  padding: 0 10.5% 48px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255,255,255,.1);
}
.site-footer { padding-top: 36px; }
.footer-logo { font-family: var(--font-en); font-size: 13px; color: rgba(255,255,255,.8); }
.footer-copy { font-family: var(--font-en); font-size: 11px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-nav { gap: 20px; }
  .site-nav a:not(.nav-contact) { display: none; }
  .hero-inner { left: 7%; }
  .hero-note { display: none; }
  .service-block { grid-template-columns: 1fr; gap: 36px; margin-bottom: 130px; }
  .service-text { padding: 0 7%; }
  .section-head { padding: 100px 7% 50px; }
  .price-table, .process-list, .price-note { margin-left: 7%; margin-right: 7%; }
  .pt-row { grid-template-columns: 1fr; gap: 6px; }
  .pt-head { display: none; }
  .pt-amount { text-align: left; }
  .process-list li { grid-template-columns: 60px 1fr; }
  .pr-time { grid-column: 2; text-align: left; }
  .contact { padding: 110px 7%; }
  .site-footer { padding-left: 7%; padding-right: 7%; }
}
