﻿:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --ink: #121417;
  --muted: #5b6573;
  --line: #e4e8ee;
  --line-strong: #d2d8e1;
  --topbar: #444444;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-ja:
    "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-en: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

html[lang^="ja"] body {
  font-family: var(--font-ja);
}

a {
  color: inherit;
  color: #1a73e8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

h1,
h2,
h3,
h4,
.top-open-btn,
.btn,
.top-nav a {
  font-family: var(--font-en);
}

html[lang^="ja"] h1,
html[lang^="ja"] h2,
html[lang^="ja"] h3,
html[lang^="ja"] h4,
html[lang^="ja"] .top-open-btn,
html[lang^="ja"] .btn,
html[lang^="ja"] .top-nav a {
  font-family: var(--font-ja);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--topbar);
  color: #ffffff;
  border-bottom: 1px solid var(--topbar);
  z-index: 40;
}

.topbar-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.logo-mark {
  display: block;
  height: 30px;
  width: auto;
}

.logo-mark path {
  fill: #ffffff;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.top-nav .mobile-nav-install {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 2px 14px 0;
  border-radius: 30px;
  border: none;
  background: #1a73e8;
  color: #ffffff;
  font-weight: 700;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 4px 1px;
  white-space: nowrap;
}

.top-nav a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.top-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 1px 11px 0;
  border-radius: 8px;
  border: none;
  background: #1a73e8;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.top-open-btn:hover {
  background: #155fc0;
}

.top-nav .mobile-nav-install:hover {
  background: #155fc0;
  border-color: transparent;
}

/* Keep install CTAs visually consistent in header and body */
a.install-cta {
  background: #1a73e8;
  border: none;
  color: #ffffff;
  gap: 0.55em;
  white-space: nowrap;
}

a.install-cta:hover {
  background: #155fc0;
}

a.install-cta .cta-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 1.6em;
  max-width: none;
  margin-top: -1px;
}

a.install-cta .cta-label {
  display: inline-block;
}

.landing-main {
  padding-top: 50px;
}

.content-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: none;
}

.section-alt {
  background: var(--surface-soft);
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b7280;
}

.section-head {
  max-width: 780px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 40px);
  margin-bottom: 14px;
  color: #0f1114;
}

.install-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.16em;
  white-space: nowrap;
  vertical-align: baseline;
}

.install-platform-logo {
  display: block;
  flex: 0 0 auto;
  width: 0.98em;
  height: 0.98em;
  transform: translateY(0.02em);
}

.install-platform-logo-edge {
  width: 0.94em;
  height: 0.94em;
}

.section-head p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  /*min-height: max(640px, calc(100vh - 50px));*/
  padding: clamp(64px, 10vw, 96px) 0 68px;
  overflow: hidden;
  background: #4b4a49;
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 940px);
  gap: 0;
  align-items: start;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero .content-wrap {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 940px;
}

.hero .section-kicker {
  margin-bottom: 0x;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.hero-copy h1 {
  max-width: 900px;
  font-size: clamp(54px, 7vw, 60px);
  margin-bottom: 18px;
  color: #ffffff;
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.015em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.64),
    0 10px 22px rgba(0, 0, 0, 0.28);
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.6);
  paint-order: stroke fill;
}

html[lang^="ja"] .hero-copy h1 {
  max-width: 940px;
  font-size: clamp(44px, 5.4vw, 60px);
  line-height: 1.02;
}

.hero-lead {
  margin: 0;
  max-width: 760px;
  font-size: clamp(18px, 2.05vw, 19px);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

html[lang^="ja"] .hero-lead {
  max-width: 750px;
  font-size: clamp(16px, 1.75vw, 16px);
  line-height: 1.68;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn {
  min-height: 40px;
  padding: 3px 22px 0;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
}

.btn-dark:hover {
  background: #000000;
}

.btn-light {
  background: #ffffff;
  color: #111827;
  border: 1px solid var(--line-strong);
}

.btn-light:hover {
  background: #f4f5f7;
}

.hero .btn-dark {
  background: #1a73e8;
  border-color: #2d7ded;
}

.hero .btn-dark:hover {
  background: #0f63d4;
}

.hero .btn-light {
  background: rgba(255, 255, 255, 0.94);
  color: #182235;
  border-color: rgba(255, 255, 255, 0.9);
}

.hero .btn-light:hover {
  background: #ffffff;
}

.hero-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  /*gap: 10px;*/
  max-width: 680px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  /*box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);*/
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background:
    linear-gradient(
      90deg,
      rgba(45, 45, 45, 0.78) 0%,
      rgba(48, 48, 48, 0.64) 24%,
      rgba(54, 54, 54, 0.5) 48%,
      rgba(54, 54, 54, 0.68) 72%,
      rgba(47, 47, 47, 0.84) 100%
    ),
    radial-gradient(circle at 92% 50%, rgba(18, 18, 18, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.18));*/
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1);
  filter: saturate(0.84) contrast(0.94) brightness(0.62);
}

.rail-icons-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rail-icon-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-icon-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail-icon-header h3 {
  margin: 0;
  font-size: 19px;
}

.rail-icon-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #cfd7e3;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 20px;
}

.rail-icon-mark-size {
  flex-direction: column;
  gap: 2px;
  padding: 4px 3px 5px;
  color: #4b5563;
}

.rail-ad-size-wrap {
  width: 100%;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rail-ad-size-icon {
  width: var(--rail-size-icon-width);
  height: var(--rail-size-icon-height);
  display: block;
  border: 1px solid currentColor;
  background: repeating-linear-gradient(
    135deg,
    rgba(107, 114, 128, 0.25) 0,
    rgba(107, 114, 128, 0.25) 2px,
    transparent 2px,
    transparent 4px
  );
}

.rail-ad-size-label {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 7px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.card-grid {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #0f1114;
}

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

.card code {
  background: #ecf0f5;
  border: 1px solid #dce3eb;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

.card-doc {
  border-top: 3px solid #1f2937;
}

.section-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px dashed #c8d0dc;
  border-radius: 10px;
  color: #4b5563;
  background: #ffffff;
  font-size: 14px;
}

.manual-link-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.manual-link-note {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.docs-cards {
  margin-bottom: 14px;
}

.usage-flow {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.usage-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.usage-step .num {
  display: inline-flex;
  min-width: 32px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #ced5e0;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
}

.usage-step h4 {
  margin-top: 10px;
  font-size: 20px;
}

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

.workflow-strip {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
}

.workflow-node {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  background: #f9fafb;
}

.workflow-node span {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 6px;
}

.workflow-node h4 {
  font-size: 20px;
  margin-bottom: 4px;
}

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

.workflow-arrow {
  width: 26px;
  height: 2px;
  background: #9aa4b2;
  position: relative;
}

.workflow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #9aa4b2;
}

.gallery-stories {
  margin-top: 26px;
  display: grid;
  gap: 75px;
}

.gallery-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.gallery-story-copy {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-story-copy h3 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.35;
}

.gallery-story-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.gallery-story-media {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #d8dee8;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.gallery-story-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer {
  border-top: 1px solid #2a2f36;
  background: #111318;
  color: #c4ccd7;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.footer p {
  margin: 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer a {
  text-decoration: none;
  color: #d7dde7;
  font-size: 13px;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: 500px;
    padding: 50px 0 50px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 760px);
  }

  .hero-media img {
    object-position: 62% center;
  }

  .card-grid.cols-3,
  .usage-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .workflow-arrow {
    width: 2px;
    height: 22px;
    margin: 0 auto;
  }

  .workflow-arrow::after {
    top: auto;
    bottom: -2px;
    left: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #9aa4b2;
    border-bottom: none;
  }

  .rail-icons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .topbar-inner {
    position: relative;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .top-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .top-nav {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 10px;
    background: #3d3d3d;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
  }

  .topbar.menu-open .top-nav {
    display: flex;
  }

  .top-nav a {
    display: block;
    padding: 8px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .top-nav a:last-child {
    border-bottom: none;
  }

  .top-nav .mobile-nav-install {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .content-wrap {
    padding: 0 14px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 10vw, 60px);
  }

  .hero {
    min-height: 500px;
    padding: 50px 0 50px;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero .btn {
    min-height: 40px;
    padding: 3px 18px 0;
    font-size: 15px;
  }

  .hero-points li {
    font-size: 15px;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .card-grid.cols-3,
  .usage-flow {
    grid-template-columns: 1fr;
  }

  .rail-icons-grid {
    grid-template-columns: 1fr;
  }

  .gallery-story {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
