/* Works UI のトークンを使い、紹介面だけ独自の余白・見出しを持つ。 */
:root {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--color-surface, #fff);
  color: var(--color-text, #233b43);
  font: 16px/1.85 var(--w-font, sans-serif);
  overflow-wrap: anywhere;
}
a {
  color: var(--color-primary, #126477);
}
button,
input,
select {
  font: inherit;
}
a,
button {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-focus, #126477);
  outline-offset: 4px;
}
header,
main,
footer {
  max-width: 1200px;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 40px;
  border-bottom: 1px solid #d5e3e7;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
header a,
.category-nav a,
.breadcrumbs a,
.flow-path a,
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
header a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.brand {
  font-size: 23px;
  letter-spacing: 0.04em;
  color: #233b43;
  font-weight: 800;
  gap: 10px;
}
.brand span {
  font-size: 15px;
  border-left: 1px solid #8ba3ab;
  padding-left: 10px;
}
section {
  padding: 64px 40px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.5;
  letter-spacing: 0.025em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.6;
  letter-spacing: 0.025em;
  margin-bottom: 20px;
}
h3 {
  font-size: 21px;
  line-height: 1.6;
  margin-bottom: 12px;
}
p {
  margin-bottom: 20px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #3e6874;
  margin-bottom: 14px;
}
.lead {
  font-size: 21px;
  line-height: 1.9;
  max-width: 760px;
}
.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 560px;
  background: #eaf5f8;
  border-radius: 0 0 40px 40px;
}
.hero-team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}
.hero-team img {
  width: 65%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #fff;
}
.hero-team img + img {
  width: 49%;
  margin: -55px 0 0 45%;
}
.hero-team p {
  border-radius: 16px;
  background: white;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 16px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.section-intro {
  max-width: 780px;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}
.category-nav a {
  padding: 8px 18px;
  border: 1px solid #8ba3ab;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
}
.category-nav a:hover {
  background: #eaf5f8;
}
.category {
  padding: 40px 0;
  border-top: 1px solid #d5e3e7;
  scroll-margin-top: 24px;
}
.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}
.category-heading h2 {
  white-space: nowrap;
}
.guide {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
}
.guide img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.guide p {
  font-size: 14px;
  margin-bottom: 0;
}
.guide .eyebrow {
  font-size: 12px;
  margin-bottom: 4px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #cadce1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 0 #e8f0f2;
}
.product-card-image {
  display: block;
  margin: -28px -28px 20px;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  border-bottom: 1px solid #d5e3e7;
}
.product-card-image img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.product-card h3 {
  font-size: 25px;
}
.product-card > p {
  font-size: 14px;
}
.product-card .target {
  color: #526970;
  font-size: 12px;
}
.product-card .w-button {
  margin-top: auto;
  align-self: flex-start;
}
.integration-section {
  background: #eff5f6;
  border-radius: 28px;
}
.flows {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.flows li {
  padding: 28px;
  border: 1px solid #cbdce0;
  border-radius: 12px;
  background: white;
}
.flows h3 {
  font-size: 19px;
}
.flows p {
  font-size: 14px;
  margin: 16px 0 0;
}
.flow-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
}
.flow-path a {
  padding: 4px 10px;
  border-radius: 6px;
  background: #eaf5f8;
  font-size: 14px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 40px;
  font-size: 13px;
}
.product-hero {
  background: #eaf5f8;
  border-radius: 24px;
}
.product-hero h1 {
  margin-bottom: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-list {
  padding-left: 24px;
}
.feature-list li {
  padding: 12px 0;
}
.source-note,
figcaption {
  font-size: 13px;
  color: #526970;
}
figure {
  margin: 0;
}
.product-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d5e3e7;
  border-radius: 12px;
}
.related {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}
.related li {
  padding: 24px;
  background: #f2f5f6;
  border-radius: 12px;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.stack li {
  padding: 8px 16px;
  background: #edf1f2;
  border-radius: 8px;
}
.demo {
  background: #eff5f6;
  border-radius: 24px;
}
.steps {
  padding-left: 24px;
}
.steps li {
  padding: 8px 0;
}
.workspace-code {
  display: grid;
  gap: 8px;
  max-width: 650px;
}
.workspace-code input {
  font-size: 16px;
  min-width: 0;
}
.workspace-code button {
  justify-self: start;
}
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.ledger-grid article {
  background: white;
  border: 1px solid #cbdce0;
  border-radius: 12px;
  padding: 20px;
}
.ledger-grid h3 {
  font-size: 18px;
}
.ledger-grid ul {
  padding-left: 20px;
  font-size: 13px;
}
.demo-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}
.demo-form label {
  font-weight: 700;
}
.demo-form button {
  justify-self: start;
}
#preview,
#received article {
  padding: 24px;
  background: white;
  border: 1px solid #cbdce0;
  border-radius: 12px;
  margin: 16px 0;
}
#preview p {
  margin: 8px 0;
}
#received p {
  margin-bottom: 12px;
}
#status {
  margin-top: 20px;
  font-weight: 600;
}
.error {
  color: #a12a3d;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: white;
  z-index: 100;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
footer {
  border-top: 1px solid #cbdce0;
  padding: 48px 40px;
  margin-top: 64px;
  font-size: 13px;
}
footer .brand {
  font-size: 18px;
}
footer p {
  margin: 20px 0;
}
/* Works UI が読めない環境でもボタン・入力欄として成立させる */
.w-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--color-primary, #126477);
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary, #126477);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.w-button:hover {
  background: #eaf5f8;
}
.w-button--primary {
  background: var(--color-primary, #126477);
  color: #fff;
}
.w-button--primary:hover {
  background: #0d4f5e;
}
header nav > .w-button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: #fff;
}
.product-card .w-button,
.related .w-button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}
.w-input,
.w-select {
  font-size: 16px;
  min-height: 44px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #8ba3ab;
  border-radius: 8px;
  background: #fff;
  color: inherit;
}
.product-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0;
}
.product-index > div {
  padding: 16px 18px;
  border: 1px solid #d5e3e7;
  border-radius: 12px;
}
.product-index h3 {
  margin: 0;
  font-size: 15px;
}
.product-index h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.product-index ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-index li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 4px 0;
  text-decoration: none;
  line-height: 1.4;
}
.product-index li a span {
  color: #526970;
  font-size: 12px;
}
.product-index li a strong {
  font-size: 15px;
}
.product-index li a:hover strong {
  text-decoration: underline;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  header nav {
    gap: 12px 20px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-team {
    max-width: 400px;
    margin: auto;
  }
  .hero-team img {
    width: 52%;
  }
  .hero-team img + img {
    width: 43%;
    margin: 30px 0 0 -20px;
  }
  .hero-team p {
    margin: 10px 0;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .product-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ledger-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  header {
    padding: 20px;
  }
  header nav {
    width: 100%;
  }
  header nav > .w-button {
    width: 100%;
  }
  section {
    padding: 44px 20px;
  }
  h1 {
    font-size: 32px;
  }
  .lead {
    font-size: 18px;
  }
  .hero {
    border-radius: 0 0 24px 24px;
    gap: 24px;
  }
  .hero br {
    display: none;
  }
  .category {
    padding: 32px 0;
  }
  .category-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }
  .product-grid,
  .flows {
    grid-template-columns: 1fr;
  }
  .product-index {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .product-index > div {
    padding: 12px 14px;
  }
  .product-card {
    padding: 24px;
  }
  .product-card-image {
    margin: -24px -24px 20px;
  }
  .guide img {
    width: 80px;
    height: 80px;
  }
  .flows li {
    padding: 22px;
  }
  .breadcrumbs {
    padding: 16px 20px;
  }
  .product-hero {
    border-radius: 0;
  }
  .integration-section,
  .demo {
    border-radius: 0;
  }
  footer {
    padding: 36px 20px;
  }
  .actions .w-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
