:root {
  --bg: #ffffff;
  --bg2: #fbf7f7;
  --ink: #1f1a1a;
  --muted: #5f4b4b;
  --muted2: #7a6161;
  --line: #efe7e7;
  --line2: #e7dcdc;

  --wine: #7b2f3a;
  --wine2: #8f3a47;
  --rose: #b46a73;
  --cream: #fff7f2;

  --shadow: 0 18px 44px rgba(31, 26, 26, .10);
  --shadow2: 0 12px 26px rgba(31, 26, 26, .08);

  --r12: 12px;
  --r16: 16px;
  --r20: 20px;
  --max: 1180px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  padding-top: 78px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  text-rendering: geometricPrecision
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

a:hover {
  opacity: .94
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: unset
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wine), var(--rose));
  box-shadow: 0 10px 18px rgba(123, 47, 58, .20);
  position: relative
}

.logo:after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .55)
}

.brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: .2px
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0
}

.nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 12px;
  transition: background .12s ease, color .12s ease;
  white-space: nowrap
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(123, 47, 58, .07)
}

.nav a:hover {
  color: var(--ink);
  background: rgba(180, 106, 115, .10)
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .1px;
  box-shadow: 0 1px 0 rgba(2, 6, 23, .02);
  cursor: pointer
}

.btn:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow2)
}

.btn:active {
  transform: translateY(1px)
}

.btn-primary {
  background: linear-gradient(135deg, var(--wine), var(--wine2));
  color: #fff;
  border-color: rgba(123, 47, 58, .25)
}

.btn-primary:hover {
  box-shadow: 0 16px 30px rgba(123, 47, 58, .18)
}

.btn-soft {
  background: rgba(180, 106, 115, .10);
  border-color: rgba(180, 106, 115, .20);
  color: var(--ink)
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted)
}

.btn-ghost:hover {
  background: rgba(2, 6, 23, .04);
  border-color: transparent
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: #fff;
  align-items: center;
  justify-content: center
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
  display: block
}

.hamburger span:before,
.hamburger span:after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px
}

.hamburger span:before {
  top: -6px
}

.hamburger span:after {
  top: 6px
}

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .35);
  z-index: 60
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(380px, 92vw);
  background: #fff;
  padding: 16px;
  border-left: 1px solid var(--line)
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px
}

.drawer a {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  color: var(--muted)
}

.drawer a:hover {
  background: rgba(123, 47, 58, .07);
  color: var(--ink)
}

.drawer a[aria-current="page"] {
  background: rgba(180, 106, 115, .12);
  color: var(--ink)
}

.drawer .cta {
  display: grid;
  gap: 10px;
  margin-top: 12px
}

.drawer .small {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted2)
}

.hero {
  padding: 54px 0 24px;
  background: radial-gradient(900px 420px at 20% -10%, rgba(180, 106, 115, .18), transparent 60%), radial-gradient(900px 420px at 85% 0%, rgba(123, 47, 58, .14), transparent 62%), linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
  border-bottom: 1px solid var(--line)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: start
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(123, 47, 58, .07);
  border: 1px solid rgba(11, 42, 91, .10);
  padding: 7px 10px;
  border-radius: 999px
}

.kicker i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine), var(--rose));
  box-shadow: 0 0 0 4px rgba(11, 42, 91, .08);
  display: inline-block
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 3.4vw, 48px);
  letter-spacing: -.5px;
  line-height: 1.12
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 64ch
}

.hero-ctas {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.trust {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted2);
  font-size: 12px
}

.trust span {
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px
}

.media {
  border-radius: var(--r20);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow)
}

.media .cap {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted2)
}

.section {
  padding: 44px 0
}

.section.alt {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px
}

h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.2px
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 78ch
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.card {
  border-radius: var(--r16);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow2)
}

.card .pad {
  padding: 18px
}

.card h3 {
  margin: 0 0 6px;
  font-size: 14px
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px
}

.card .meta {
  margin-top: 12px;
  display: grid;
  gap: 8px
}

.row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(123, 47, 58, .08);
  border: 1px solid rgba(123, 47, 58, .14)
}

.link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wine)
}

.link .arr {
  font-weight: 700
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch
}

.panel {
  border-radius: var(--r16);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  padding: 18px 18px 18px 16px
}

.steps {
  display: grid;
  gap: 10px
}

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff
}

.step .n {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 106, 115, .12);
  border: 1px solid rgba(180, 106, 115, .22);
  color: var(--rose);
  font-weight: 700;
  font-size: 12px
}

.step b {
  font-size: 13px
}

.step p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted)
}

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px
}

.pill {
  font-size: 12px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line)
}

/* Hero usage mini */
.usage-mini {
  margin-top: 16px;
  max-width: 72ch
}

.usage-mini .usage-head {
  font-size: 12px;
  color: var(--muted2)
}

.usage-mini .usage-head b {
  color: var(--ink)
}

.usage-mini .meta-line {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted)
}

.usage-mini .mini-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wine)
}

.usage-mini .mini-link .arr {
  font-weight: 700
}

/* Supply section left summary */
.supply-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%
}

.supply-left .network-line {
  font-size: 12px;
  color: var(--muted2);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px
}

.supply-left .keypoints {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55
}

.supply-left .keypoints li {
  margin: 6px 0
}

.supply-left .summary-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wine)
}

.supply-left .summary-link .arr {
  font-weight: 700
}

/* Tighten steps spacing slightly */
.steps {
  gap: 9px
}

.step p {
  line-height: 1.45
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 12px
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap
}

.footer .links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.footer a {
  color: var(--muted)
}

.footer a:hover {
  color: var(--ink)
}

.page-hero {
  padding: 36px 0 18px;
  background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
  border-bottom: 1px solid var(--line)
}

.page-hero h1 {
  font-size: clamp(30px, 3vw, 40px)
}

.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 78ch
}

@media (max-width:980px) {
  .hero-grid {
    grid-template-columns: 1fr
  }

  .grid-3 {
    grid-template-columns: 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .split {
    grid-template-columns: 1fr
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0
  }

  .hamburger {
    display: inline-flex
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: unset
  }

  .container {
    width: min(var(--max), calc(100% - 34px))
  }
}


/* Footer mega */
.footer {
  background: #fff
}

.footer-mega {
  padding: 34px 0
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: start
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.footer-brand img {
  width: 170px;
  height: auto
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: .2px
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 0
}

.footer-col a:hover {
  color: var(--ink)
}

.social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 26, 26, .02)
}

.social a:hover {
  box-shadow: var(--shadow2)
}

.social svg {
  width: 18px;
  height: 18px;
  fill: var(--wine)
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 14px 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted2);
  font-size: 12px
}

.footer-bottom .mini-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.footer-bottom .mini-links a {
  color: var(--muted2)
}

.footer-bottom .mini-links a:hover {
  color: var(--ink)
}

@media (max-width:980px) {
  .footer-top {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:560px) {
  .footer-top {
    grid-template-columns: 1fr
  }
}


/* Defensive: never fix header CTA on mobile */
@media (max-width:980px) {
  .actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end
  }

  .actions a {
    position: relative
  }
}

/* Drawer stability */
.drawer {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease;
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-panel {
  transform: translateX(12px);
  transition: transform .18s ease;
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}


@media (max-width:980px) {

  .wm-main,
  .wm-sub {
    font-size: 18px
  }
}


/* Wordmark (CODEX JAPAN) */
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.0;
  gap: 4px;
  letter-spacing: 1.2px;
}

.wm-main {
  font-weight: 900;
  font-size: 22px;
  /* Brand requirement: CODEX must be pure black while keeping size/position unchanged */
  color: #000;
}

.wm-sub {
  font-weight: 500;
  font-size: 20px;
  color: rgba(123, 47, 58, .78);
  letter-spacing: 1.6px;
}

@media (min-width:980px) {
  .wm-main {
    font-size: 24px
  }

  .wm-sub {
    font-size: 20px
  }
}

@media (max-width:420px) {
  .wm-main {
    font-size: 20px
  }

  .wm-sub {
    font-size: 18px
  }
}


/* Partner logos strip */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.logo-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow2);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px
}

.logo-item img {
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(.95) contrast(1.02);
  opacity: .99
}

.logo-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted2)
}

@media (max-width:980px) {
  .logo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width:560px) {
  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .logo-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow2);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px
  }

  .logo-item img {
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: saturate(.95) contrast(1.02);
    opacity: .99
  }
}

.btn-primary {
  padding: 12px 16px;
}

@media (max-width:1120px) {
  .nav {
    display: none
  }

  .hamburger {
    display: inline-flex
  }
}

.btn {
  white-space: nowrap
}

@media (max-width:560px) {
  .logo-item img {
    max-height: 72px
  }

  .logo-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow2);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px
  }
}

/* Keep header wordmark consistent with footer */
.header .wordmark {
  gap: 4px
}

.header .wm-main {
  font-size: 22px
}

.header .wm-sub {
  font-size: 20px
}

@media (min-width:980px) {
  .header .wm-main {
    font-size: 22px
  }

  .header .wm-sub {
    font-size: 20px
  }
}

@media (max-width:560px) {
  .btn-primary {
    padding: 11px 14px;
    border-radius: 16px
  }
}


/* Thumb strip under integrated network (homepage) */
.thumb-strip {
  margin-top: 14px
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px
}

.thumb {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(11, 42, 91, .08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06)
}

.thumb-ph {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(123, 47, 58, .12), rgba(11, 42, 91, .06));
}

.thumb figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em
}

@media (max-width: 860px) {
  .thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .thumb figcaption {
    padding: 8px 10px
  }
}

/* Hero usage mini */
.usage-mini {
  margin-top: 16px;
  max-width: 72ch
}

.usage-mini .usage-head {
  font-size: 12px;
  color: var(--muted2)
}

.usage-mini .usage-head b {
  color: var(--ink)
}

.usage-mini .usage-pills {
  margin-top: 10px
}

.usage-mini .meta-line {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted)
}

.usage-mini .mini-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wine)
}

.usage-mini .mini-link .arr {
  font-weight: 700
}

/* Supply section left summary */
.media .summary {
  padding: 14px 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff
}

.media .summary h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: -.1px
}

.media .summary ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55
}

.media .summary li {
  margin: 6px 0
}

.media .summary a {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wine)
}



/* Supply section tweaks (v12.1) */
.panel-wide {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto
}

.photo-3 {
  margin-top: 14px
}

.photo-3 figure {
  background: #fff;
  border: 1px solid rgba(11, 42, 91, .08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06)
}

.photo-3 figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #f3f4f6
}

.photo-3 figcaption.cap {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
  text-align: center
}

@media (max-width: 860px) {
  .panel-wide {
    max-width: none
  }
}


.nav a.is-active {
  opacity: 1;
  text-decoration: underline;
}

.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.brand { display:flex; align-items:center; }



.brand-logo {
  height: 55px;   /* 桌面 */
  width: auto;
  display: block;
}

@media (max-width: 420px) {
  .brand-logo {
    height: 48px; /* 手机 */
  }
}
