:root {
  --paper: #f6f5f0;
  --white: #fffefa;
  --ink: #222720;
  --secondary: #53594f;
  --muted: #656c61;
  --line: #d9ddd3;
  --rust: #814632;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: rgba(129, 70, 50, 0.18);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 5px;
}
button {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
.wrap {
  width: min(1184px, calc(100% - 96px));
  margin-inline: auto;
}
.launch-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: #e8eae2;
  color: #42493e;
  font-size: 13px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 50%;
  flex-shrink: 0;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--rust);
  border: 1px solid var(--rust);
  font-size: 23px;
  font-family: serif;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.header nav a {
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
@media (hover: hover) {
  .header nav a:hover,
  .text-link:hover {
    color: var(--rust);
  }
}
.language {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding-block: 56px 72px;
}
.hero-copy {
  padding-top: 20px;
}
.eyebrow {
  font-size: 14px;
  color: var(--secondary);
  margin: 0 0 20px;
  font-weight: 500;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}
.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--secondary);
  max-width: 520px;
  margin-bottom: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 12px 20px;
  border-radius: 3px;
  text-decoration: none;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  transition: background 160ms;
}
@media (hover: hover) {
  .button:hover {
    background: var(--rust);
  }
}
.text-link {
  font-size: 14px;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.record-preview {
  background: var(--white);
  padding: 28px;
  border: 1px solid #cfd4c8;
  min-width: 0;
}
.sheet-top {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--secondary);
}
.small-brand {
  color: var(--rust);
  font-size: 15px;
  font-weight: 600;
}
.sample-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 20px;
}
.record-tabs {
  display: none;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  margin-bottom: 24px;
}
.record-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 8px 0;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.record-tabs button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--rust);
}
.record-preview h2 {
  font-family: var(--sans);
  font-size: 23px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.sample-rows {
  margin: 0;
}
.sample-rows > div {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.sample-rows dt {
  display: flex;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}
.sample-rows dt > span:first-child {
  color: var(--rust);
  font: 12px/2 monospace;
}
.sample-rows dd {
  margin: 4px 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--secondary);
}
.sheet-bottom {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
}
.section {
  padding-block: 64px;
}
.services {
  border-top: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > p {
  color: var(--secondary);
  margin-bottom: 0;
  max-width: 760px;
}
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.service {
  display: block;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.index {
  font: 13px/2 monospace;
  color: var(--rust);
}
.service h3 {
  margin-top: 0;
  margin-bottom: 12px;
}
.service p {
  color: var(--secondary);
  font-size: 16px;
}
.service .service-limit {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--muted);
}
.record-section {
  background: #e9ece4;
  border-block: 1px solid #d5dbce;
}
.record-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.record-rules article {
  padding-top: 20px;
  border-top: 1px solid #c5cdbd;
}
.record-rules .index {
  display: block;
  margin-bottom: 12px;
}
.record-rules h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.record-rules p {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 0;
}
.launch-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.launch-heading h2 {
  font-size: 32px;
  margin-bottom: 0;
}
.launch-body {
  color: var(--secondary);
  padding-top: 4px;
}
.launch-body p:last-child {
  margin-bottom: 0;
}
.faq {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.faq h2 {
  font-size: 30px;
  margin-bottom: 28px;
}
.faq-list {
  max-width: 880px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq details:first-child {
  padding-top: 0;
}
.faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  padding-right: 16px;
  line-height: 1.6;
  min-height: 24px;
}
.faq details p {
  font-size: 14px;
  margin: 16px 0 4px;
  color: var(--secondary);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--secondary);
}
.footer a {
  text-underline-offset: 4px;
}
.footer > div > a {
  text-decoration: none;
  font-size: 16px;
  color: var(--ink);
}
.footer p {
  margin: 8px 0 0;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.footer-right a {
  color: var(--rust) !important;
  font-size: 13px !important;
}
.skip {
  position: absolute;
  left: 24px;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  transform: translateY(0);
}
html[lang="ja"] h1,
html[lang="ja"] h2 {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
html[lang="ja"] h1 {
  font-size: clamp(32px, 3.3vw, 44px);
}
html[lang="ja"] .section-heading h2 {
  font-size: clamp(28px, 2.6vw, 36px);
}
html[lang="ja"] .record-preview h2 {
  font-size: 23px;
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero,
  .service-list,
  .launch-section {
    gap: 40px;
  }
  .record-preview {
    padding: 24px;
  }
  .record-rules {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .launch-line {
    font-size: 12px;
    line-height: 1.5;
    justify-content: flex-start;
    padding: 8px 20px;
  }
  .header {
    padding-block: 20px;
    gap: 16px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .header nav {
    gap: 12px;
    font-size: 13px;
  }
  .header nav > a:nth-child(2) {
    display: none;
  }
  .language {
    padding-left: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 36px 48px;
  }
  .hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }
  .lead {
    font-size: 17px;
  }
  .hero-actions {
    gap: 12px 20px;
    margin-top: 24px;
  }
  .record-preview {
    width: 100%;
    max-width: 520px;
    justify-self: center;
    padding: 24px;
  }
  .record-preview h2 {
    font-size: 22px;
  }
  .section {
    padding-block: 48px;
  }
  .service-list,
  .record-rules,
  .launch-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-heading {
    margin-bottom: 28px;
    gap: 16px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .eyebrow {
    margin-bottom: 16px;
  }
  .service {
    padding-top: 20px;
  }
  .record-rules article {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
  }
  .record-rules .index {
    margin: 0;
  }
  .launch-body {
    padding-top: 0;
  }
  .launch-heading h2,
  .faq h2 {
    font-size: 28px;
  }
  .faq {
    padding-top: 32px;
  }
  .footer {
    flex-direction: column;
    gap: 20px;
  }
  .footer-right {
    align-items: flex-start;
  }
  html[lang="ja"] .hero h1 {
    font-size: clamp(28px, 8.2vw, 38px);
  }
  html[lang="ja"] .section-heading h2 {
    font-size: 28px;
  }
}
@media (max-width: 360px) {
  .record-preview {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.js-enabled .record-tabs {
  display: flex;
}
.script-note {
  font-size: 13px;
  color: var(--secondary);
}
html[lang="ja"] p {
  text-wrap: pretty;
  word-break: auto-phrase;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
  word-break: auto-phrase;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  .hero-copy {
    padding-top: 0;
  }
}

.phrase {
  display: inline-block;
}
h1,
h2 {
  text-wrap: balance;
}

[hidden] { display: none !important; }
.privacy { border-top: 1px solid var(--line); }
.privacy > p, .privacy > details { max-width: 880px; color: var(--secondary); }
.privacy h2 { font: 400 28px/1.4 var(--sans); letter-spacing: 0; }
.privacy details { border-block: 1px solid var(--line); padding: 16px 0; margin-bottom: 20px; }
.privacy summary { cursor: pointer; min-height: 28px; }
.privacy details p { margin: 16px 0 0; font-size: 14px; }
.privacy a { text-underline-offset: 4px; }
.text-button { border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; min-height: 44px; cursor: pointer; }
.footer-contact { max-width: 400px; }
.footer-contact > a { font-size: 14px !important; }
.footer-contact p { font-size: 12px; }
.consent-banner { position: fixed; z-index: 20; right: 24px; bottom: 24px; width: min(580px, calc(100% - 48px)); padding: 24px; background: var(--white); border: 1px solid #b9c1b1; box-shadow: 0 4px 20px #22272012; }
.consent-banner h2 { font: 400 22px/1.4 var(--sans); margin-bottom: 12px; letter-spacing: 0; }
.consent-banner p { font-size: 14px; color: var(--secondary); margin-bottom: 8px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.consent-actions button { background: var(--white); color: var(--ink); border: 1px solid var(--secondary); border-radius: 3px; min-height: 44px; padding: 8px 16px; cursor: pointer; }
@media (hover: hover) { .consent-actions button:hover { background: #e9ece4; } }
@media (max-width: 760px) { .consent-banner { right: 20px; bottom: 20px; width: calc(100% - 40px); padding: 20px; } .consent-actions { display: grid; grid-template-columns: 1fr; } }

/* Detail pages keep the same paper, typography and measured reading width. */
.detail-page { max-width: 880px; padding-bottom: 64px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-block: 24px; font-size: 13px; color: var(--secondary); }
.breadcrumbs a { text-underline-offset: 4px; }
.detail-intro { padding-block: 28px 40px; }
.detail-intro h1 { font-size: clamp(36px, 4.4vw, 52px); max-width: 800px; }
.detail-intro .lead { max-width: 760px; }
.detail-section { border-top: 1px solid var(--line); padding-block: 32px 16px; }
.detail-section h2, .detail-related h2 { font: 400 25px/1.5 var(--sans); letter-spacing: 0; text-wrap: pretty; }
.detail-section p, .detail-section li { color: var(--secondary); }
.detail-section ul { padding-left: 24px; margin-block: 0 16px; }
.detail-section li { padding-block: 4px; }
.detail-section a, .detail-related a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.detail-related { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 32px; }
.detail-related ul { padding: 0; list-style: none; margin-bottom: 0; }
.detail-related a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
.service .text-link { margin-top: 16px; }
html[lang="ja"] .detail-intro h1 { font-size: clamp(28px, 3.8vw, 40px); }
@media (max-width: 760px) { .detail-page { padding-bottom: 48px; } .detail-intro { padding-block: 12px 32px; } .detail-section { padding-block: 28px 12px; } }

/* Developer connection examples stay readable within the existing detail layout. */
.connection-command { margin-block: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); font: 400 13px/1.7 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
