@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@700&text=%E5%A0%B1%E9%81%93%E9%9D%A9%E5%91%BD&display=swap");

:root {
  color-scheme: light;
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #262e33;
  background: #f6f5f1;
  font-synthesis: none;
  --paper: #f6f5f1;
  --ink: #262e33;
  --muted: #626d73;
  --accent: #1f5b66;
  --accent-light: #e9f0f0;
  --border: #dce1df;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #568e99;
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}
p + p {
  margin-top: 1em;
}
ul,
ol {
  padding-left: 1.4em;
}
li + li {
  margin-top: 0.55em;
}
strong {
  font-weight: 700;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  padding: 8px 14px;
  background: #fff;
  z-index: 5;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.draft-banner {
  padding: 10px 24px;
  color: #67441f;
  background: #fff0d9;
  border-bottom: 1px solid #e6cda5;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
.draft-banner p {
  margin: 0;
}
.shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 25px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
/* Holds the same K favicon the application uses, so both entry points match. */
.brand-mark {
  display: block;
  flex: none;
  width: 38px;
  height: 38px;
}
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-name {
  font-family: "Shippori Mincho", var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.6;
}
.header-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 12px;
}
.header-links > a {
  color: var(--muted);
  text-decoration: none;
}
.header-links > a:hover {
  color: var(--accent);
}
.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}
.button::after {
  content: "→";
}
.button:hover {
  background: #174852;
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  color: var(--accent);
}
.button.secondary:hover {
  background: var(--accent-light);
}
.header-links > .button {
  min-height: 38px;
  padding: 8px 15px;
  color: #fff;
  font-size: 12px;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.hero {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  align-items: center;
  gap: 66px;
  padding-block: 84px 92px;
}
.hero h1 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(31px, 3.25vw, 46px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.05em;
}
.hero .lead {
  max-width: 32em;
  margin-top: 27px;
  font-size: 14px;
  color: var(--muted);
  line-height: 2.1;
}
.hero .button {
  margin-top: 30px;
}
.fine-print {
  font-size: 11px;
  color: var(--muted);
}
.hero .fine-print {
  margin-top: 12px;
}
.workflow {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 44px #203c4610;
}
.workflow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.workflow-head strong {
  font-family: var(--serif);
  font-size: 16px;
}
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.workflow ol {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
}
.workflow li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  margin: 0;
  padding-block: 16px;
}
.workflow li + li {
  border-top: 1px solid #edf0ed;
}
.step-number {
  font-family: var(--serif);
  font-size: 16px;
  color: #56838d;
}
.workflow h2 {
  font-size: 13px;
  font-weight: 700;
}
.workflow p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.workflow-note {
  padding: 10px 13px;
  background: var(--paper);
  border-radius: 5px;
  font-size: 11px;
  color: var(--muted);
}
.section {
  padding-block: 64px;
  border-top: 1px solid var(--border);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.7;
}
.section-heading > p {
  max-width: 30em;
  color: var(--muted);
  font-size: 13px;
}
.write-feature {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 44px;
  padding: 38px;
  border: 1px solid #cbdcde;
  border-radius: 10px;
  background: #fff;
}
.feature-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.feature-title h3 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
}
.write-feature h4,
.option h4 {
  margin: 0 0 9px;
  font-size: 15px;
}
.write-feature p {
  color: var(--muted);
  font-size: 13px;
}
.feature-details {
  display: grid;
  gap: 17px;
}
.feature-details > div + div {
  padding-top: 17px;
  border-top: 1px solid var(--border);
}
.feature-details strong {
  font-size: 13px;
}
.feature-details p {
  margin-top: 5px;
}
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.option {
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fdfdfb;
}
.option .feature-title h3 {
  font-size: 23px;
}
.option p {
  color: var(--muted);
  font-size: 13px;
}
.option .tag {
  background: #efeeea;
  color: #687176;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.principles h3 {
  font-size: 14px;
  margin: 10px 0;
}
.principles p {
  color: var(--muted);
  font-size: 12px;
}
.principles .number {
  font-family: var(--serif);
  font-size: 21px;
  color: #71919a;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Left-aligned text with the sign-in card alongside it, so the 1120px shell is
   filled on purpose instead of leaving the right half empty. */
.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  align-items: center;
  gap: 54px;
  padding-block: 100px 112px;
}
.landing-intro h1 {
  margin-top: 21px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.3vw, 42px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.05em;
}
.landing-intro .description {
  max-width: 40em;
  margin-top: 25px;
  font-size: 13px;
  line-height: 2.2;
  color: var(--muted);
}
.landing-panel {
  padding: 32px 30px 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px #203c460f;
}
.landing-panel h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.landing-panel p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.95;
  color: var(--muted);
}
.landing-panel .button {
  width: 100%;
  margin-top: 22px;
}
.login-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 45px;
  align-items: center;
  padding: 42px;
  margin-block: 0 72px;
  border-radius: 12px;
  background: #e8f0f0;
  border: 1px solid #cadcde;
}
.login-panel h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}
.login-panel p {
  margin-top: 12px;
  max-width: 46em;
  font-size: 13px;
  color: #526a70;
}
.login-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #526a70;
}
.login-note:empty {
  display: none;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
}
.footer-links a {
  color: var(--muted);
}
.document-heading {
  max-width: 820px;
  margin-inline: auto;
  padding-block: 58px 32px;
}
.document-heading h1 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.6;
  font-weight: 600;
}
.document-heading .description {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.document {
  max-width: 820px;
  margin: 0 auto 70px;
  padding: 38px 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.document section + section {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 30px;
}
.document h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 15px;
}
.document h3 {
  font-size: 14px;
  margin-block: 23px 10px;
}
.document p,
.document ul,
.document ol,
.document dl {
  font-size: 13px;
  line-height: 2;
}
.document ul,
.document ol {
  margin-block: 13px;
}
.review-note {
  padding: 17px 20px;
  margin-bottom: 28px;
  border-left: 3px solid #b99a69;
  background: #fbf5e9;
  font-size: 12px;
  line-height: 1.9;
}
.review-note strong {
  color: #765e3d;
}
.review-note p {
  font-size: 12px;
}
.toc {
  margin: 26px 0 32px;
  padding: 18px 22px;
  background: var(--paper);
  border-radius: 7px;
}
.toc ol {
  columns: 2;
  column-gap: 34px;
  font-size: 12px;
  margin-bottom: 0;
}
.toc li {
  break-inside: avoid;
}
.toc a {
  color: var(--muted);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  line-height: 1.9;
  margin-block: 20px;
}
.data-table th,
.data-table td {
  padding: 13px 15px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.data-table thead th {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
}
.data-table tbody th {
  background: #fafbf9;
  width: 32%;
  font-weight: 500;
}
.license-text {
  font-family:
    ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
    monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fafbf9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 18px;
  overflow-x: auto;
  margin-block: 12px 24px;
}
.operator-details {
  margin: 18px 0 0;
}
.operator-details > div {
  display: grid;
  grid-template-columns: minmax(8em, max-content) 1fr;
  column-gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0ed;
}
.operator-details dt {
  color: var(--muted);
}
.operator-details dd {
  margin: 0;
}
.back-link {
  display: inline-block;
  margin-top: 30px;
  font-size: 12px;
}
.not-found {
  max-width: 640px;
  margin: 75px auto 100px;
  text-align: center;
}
.not-found .error-number {
  font-family: var(--serif);
  font-size: 68px;
  line-height: 1.3;
  color: #77949c;
}
.not-found h1 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  margin-top: 18px;
}
.not-found p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}
.not-found .button {
  margin-top: 28px;
}
@media (max-width: 850px) {
  .hero {
    gap: 34px;
    padding-block: 55px 64px;
  }
  .workflow {
    padding: 22px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 16px;
    max-width: none;
  }
  .write-feature {
    gap: 26px;
    padding: 30px;
  }
  .principles {
    gap: 23px;
  }
  .document {
    padding: 30px;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 14px;
  }
  .shell {
    width: calc(100% - 36px);
  }
  .site-header {
    padding-block: 19px;
    gap: 14px;
  }
  .brand-name {
    font-size: 16px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .landing {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 56px 68px;
  }
  .landing-panel {
    padding: 26px 22px 28px;
  }
  .header-links {
    gap: 12px;
  }
  .header-links .feature-link {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 42px 48px;
  }
  .hero h1 {
    margin-top: 17px;
    font-size: 32px;
  }
  .hero .lead {
    margin-top: 19px;
    font-size: 13px;
  }
  .hero .button {
    margin-top: 23px;
  }
  .workflow {
    padding: 24px;
  }
  .section {
    padding-block: 42px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .write-feature {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
  }
  .options {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }
  .option {
    padding: 25px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .principles > div + div {
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }
  .login-panel {
    grid-template-columns: 1fr;
    padding: 28px;
    margin-bottom: 44px;
    gap: 23px;
  }
  .login-panel h2 {
    font-size: 23px;
  }
  .login-panel .button {
    justify-self: start;
  }
  .site-footer {
    flex-direction: column;
    gap: 16px;
  }
  .document-heading {
    padding-block: 37px 25px;
  }
  .document {
    padding: 24px 20px;
    margin-bottom: 40px;
  }
  .document h2 {
    font-size: 19px;
  }
  .toc {
    padding: 17px;
  }
  .toc ol {
    columns: 1;
  }
  .data-table th,
  .data-table td {
    padding: 10px;
  }
  .data-table tbody th {
    width: 35%;
  }
  .operator-details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .not-found {
    margin-block: 55px 65px;
  }
}
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .toc,
  .back-link {
    display: none;
  }
  .shell {
    width: 100%;
  }
  .document {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .document-heading {
    max-width: none;
    padding-top: 0;
  }
  .document section {
    break-inside: auto;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  tr {
    break-inside: avoid;
  }
}
