:root {
  color-scheme: light;
  --bg: #f6faf7;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1f7f3;
  --line: #d7e5dc;
  --line-soft: #e6f0ea;
  --text: #102019;
  --muted: #52645a;
  --faint: #5c6e64;
  --action: #0b7a53;
  --action-strong: #086341;
  --success: #1f7a4d;
  --warning: #b45309;
  --danger: #b91c1c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgba(16, 32, 25, 0.08);
  --max: 1200px;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(11, 122, 83, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfdfb, var(--bg));
}

a {
  color: var(--action);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(246, 250, 247, 0.88);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}

.brand-name {
  line-height: 1;
}

.brand-reading {
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1;
}

.name-reading {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e8f5ee;
  color: var(--action);
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}
.nav a {
  color: var(--muted);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: var(--muted);
}
.lang-switch a[aria-current="page"] {
  color: var(--text);
}
.lang-switch a:hover {
  color: var(--text);
  text-decoration: none;
}
.form-card > .lang-switch {
  display: flex;
  margin-bottom: 4px;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 22px 88px;
}

h1,
h2,
h3,
.brand {
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    sans-serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 14px;
  color: #3c4f46;
}
.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 62ch;
}
.muted,
.note {
  color: var(--muted);
  font-size: 0.88rem;
}
.note {
  margin-top: 18px;
}
.error {
  color: var(--danger);
}
.status-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.55;
}
.status-banner:empty {
  display: none;
}
.status-banner.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
}
.status-banner.note {
  margin-top: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.status-panel {
  margin: 20px 0 4px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid #a7f3d0;
  border-left: 4px solid var(--action);
  background: #ecfdf5;
  color: var(--text);
}
.status-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.status-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
}
.status-panel-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  color: #064e3b;
}
.status-ref-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #a7f3d0;
  background: #ffffff;
}
.status-ref-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
.status-ref-code {
  display: block;
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #064e3b;
  user-select: all;
  word-break: break-all;
}
.status-ref-copy {
  width: auto;
  margin: 0;
  padding: 6px 12px;
  min-height: 34px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--action-strong);
  cursor: pointer;
}
.status-ref-copy:hover {
  background: #dff3e8;
}
.status-panel p {
  margin: 0 0 10px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #16382b;
}
.status-panel p:last-of-type {
  margin-bottom: 0;
}
.status-panel-appeal {
  font-weight: 600;
  color: #064e3b;
}
.status-panel-actions {
  margin-top: 18px;
}
.status-panel-actions button {
  width: auto;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #a7f3d0;
  background: #ffffff;
  color: var(--action-strong);
  cursor: pointer;
}
.status-panel-actions button:hover {
  background: var(--panel-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 42px 0 34px;
}
.hero-copy {
  min-width: 0;
}
.hero .actions {
  margin-top: 26px;
}
.hero-visual {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
}
.url-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.url-card code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.url-card-after {
  border-color: #bfe3cf;
  background: #f2fbf6;
}
.url-card-after code {
  color: var(--success);
  font-size: 1.25rem;
  font-weight: 700;
}
.url-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.url-chip {
  justify-self: start;
  padding: 3px 9px;
  border: 1px solid #bfe3cf;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
}
.url-arrow {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  color: var(--action);
}
.url-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--action);
  background: #e8f5ee;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge.active {
  color: var(--success);
  background: #e3f6eb;
  border-color: #a7e3c0;
}
.badge.revoked,
.badge.expired {
  color: var(--danger);
  background: #fdecec;
  border-color: #f5c2c2;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  font: inherit;
  cursor: pointer;
  transition:
    transform 120ms ease,
    filter 120ms ease;
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--action), var(--action-strong));
  color: #ffffff;
  font-weight: 750;
}

button {
  border: 1px solid var(--action);
  border-radius: 9px;
  background: var(--action);
  color: #ffffff;
  font-weight: 700;
}

.button:hover,
button:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.button:active,
button:active {
  transform: translateY(1px);
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.button.secondary:hover {
  border-color: var(--action);
}
button[data-id] {
  border-color: var(--danger);
  background: transparent;
  color: var(--danger);
}
button[data-id]:hover {
  background: #fdecec;
  filter: none;
}
.button:focus-visible,
button:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button[hidden] {
  display: none;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 28px 0;
}

.feature {
  padding: 20px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.use-cases {
  margin-top: 16px;
}
.use-case {
  padding: 20px;
}
.use-case-label {
  color: var(--action);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.use-case h3 {
  margin-top: 8px;
}
.use-case p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty {
  color: var(--muted);
  padding: 18px 0;
}

.price-summary td:first-child {
  color: var(--muted);
}

.faq details {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
}
.faq summary:hover {
  color: var(--action);
}
.faq details p {
  max-width: 72ch;
  margin: 8px 0 0;
  color: var(--muted);
}

.cta-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  text-align: center;
}
.cta-panel h2 {
  font-size: 1.35rem;
}
.cta-panel p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.stats-panel {
  margin: 24px 0 8px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.kpi {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.trend-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.trend-panel h2 {
  margin-bottom: 4px;
}
.trend-svg {
  display: block;
  width: 100%;
  height: 160px;
  margin-top: 12px;
}
.trend-bar {
  fill: var(--action);
}
.trend-baseline {
  stroke: var(--line);
  stroke-width: 1;
}
.trend-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}
.trend-data {
  margin-top: 10px;
}
.trend-data summary {
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.quota {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.table-scroll {
  overflow-x: auto;
}
.table-scroll table {
  min-width: 520px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 14px;
}
th {
  text-align: left;
  padding: 10px 8px;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
tbody tr:hover {
  background: rgba(11, 122, 83, 0.04);
}
td code,
p code,
li code {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.86em;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f1f7f3;
  color: #102019;
  font-size: 0.84rem;
  line-height: 1.6;
}
pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

form {
  display: grid;
  gap: 16px;
}
/* author の display は hidden 属性の UA style に勝つので、明示的に消す。 */
form[hidden] {
  display: none;
}
label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(11, 122, 83, 0.35);
  outline-offset: 1px;
  border-color: var(--action);
}

.form-card {
  max-width: 480px;
  margin: 0 auto;
}
.section {
  margin-top: 44px;
}
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 22px 40px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 0.8rem;
}
.site-footer a {
  color: var(--faint);
  margin-right: 12px;
}
.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .brand-reading {
    display: none;
  }
  .site-header .inner {
    padding: 12px 16px;
  }
  .nav {
    gap: 10px;
    font-size: 0.82rem;
  }
  .nav a.hide-sm {
    display: none;
  }
  .nav .lang-switch {
    padding-left: 10px;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  main {
    padding: 28px 16px 64px;
  }
  .card {
    padding: 18px;
  }
}

/* pricing */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 18px 0 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.billing-toggle button {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}
.billing-toggle button.is-active {
  border-color: var(--action);
  background: var(--action);
  color: #ffffff;
}
.billing-toggle button:disabled {
  opacity: 1;
  color: var(--muted);
  cursor: not-allowed;
}
.toggle-badge {
  margin-left: 4px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.plan.featured {
  border-color: var(--action);
  box-shadow: 0 0 0 1px var(--action);
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan h2 {
  margin: 0;
}
.plan-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-height: 2.4em;
  margin: 12px 0 4px;
  font-weight: 700;
}
.price-list s {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.price-launch {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.price-unit {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.plan-note {
  margin: 0 0 8px;
  color: var(--action);
  font-size: 0.85rem;
  font-weight: 650;
}
.plan-for {
  min-height: 2.8em;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.plan ul {
  margin: 0 0 16px;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.plan .button {
  width: 100%;
  margin-top: auto;
}

.founding {
  padding: 14px 18px;
  margin: 18px 0;
  border: 1px solid var(--action);
  border-radius: 14px;
  background: color-mix(in srgb, var(--action) 8%, transparent);
}
.founding p {
  margin: 6px 0 0;
}

.plan-conditions {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.comparison .plan-consult {
  text-align: center;
  vertical-align: middle;
  color: var(--text);
  font-weight: 600;
  background: var(--panel-2);
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.assurance-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.assurance-item h3 {
  margin-top: 0;
}
.assurance-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.comparison {
  min-width: 760px;
}
.comparison th:first-child,
.comparison td:first-child {
  color: var(--muted);
  font-weight: 600;
}

.trust-line {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .assurance-grid {
    grid-template-columns: 1fr;
  }
  .price-launch {
    font-size: 1.7rem;
  }
}

.oauth-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.oauth-stack[hidden],
.oauth-btn[hidden],
.auth-divider[hidden] {
  display: none;
}
.oauth-btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
