:root {
  --bg: #ffffff;
  --ink: #101010;
  --muted: #626262;
  --soft: #f5f5f3;
  --line: #deded9;
  --line-dark: #2a2a2a;
  --panel: #fafafa;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(780px, calc(100% - 48px));
}

.site-header {
  --scroll-t: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 222, 217, 0.84);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: calc(78px - 14px * var(--scroll-t));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: calc(42px - 10px * var(--scroll-t));
  height: calc(42px - 10px * var(--scroll-t));
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: calc(21px - 3px * var(--scroll-t));
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-subtitle {
  max-height: calc(18px * (1 - var(--scroll-t)));
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  opacity: calc(1 - var(--scroll-t));
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a,
.site-nav span {
  flex: 0 0 auto;
}

.site-nav a:hover,
.lang-switch:hover {
  color: var(--ink);
}

.muted-link {
  color: #a0a0a0;
  cursor: not-allowed;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid rgba(16, 16, 16, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
}

.hero-section {
  padding: 92px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5.4vw, 50px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.lead,
.section-head p,
.split-grid p,
.cta-box p,
.page-hero p {
  color: var(--muted);
  font-size: 16px;
}

.badge-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row {
  margin: 28px 0 30px;
}

.badge-row span,
.planned-label,
.plan-badge,
.notice {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.button-dark {
  color: #fff;
  background: var(--ink);
}

.button-light {
  background: #fff;
}

.button-disabled {
  color: #8a8a8a;
  background: #eeeeeb;
  border-color: var(--line);
  cursor: not-allowed;
}

.hero-media,
.admin-stack,
.template-card img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.hero-media {
  padding: 14px;
  transform: rotate(-0.7deg);
}

.hero-main {
  width: 100%;
  aspect-ratio: 1200 / 753;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.hero-thumbs img {
  aspect-ratio: 1200 / 753;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section {
  padding: 92px 0;
}

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

.section-ink {
  color: #fff;
  background: #111;
}

.section-ink .eyebrow,
.section-ink p {
  color: #bcbcbc;
}

.section-head {
  width: min(720px, 100%);
  margin-bottom: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card,
.plan-card,
.step-card,
.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-card {
  min-height: 238px;
  padding: 24px;
}

.feature-index {
  display: block;
  margin-bottom: 44px;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 800;
}

.feature-card p,
.template-card p,
.plan-position,
.plan-summary-list,
.step-card p,
.legal-stack p,
.legal-list {
  color: var(--muted);
  font-size: 14px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  gap: 60px;
  align-items: center;
}

.admin-stack {
  padding: 12px;
  background: #1b1b1b;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.admin-stack img {
  width: 100%;
  aspect-ratio: 1200 / 676;
  object-fit: cover;
  border: 1px solid #333;
  border-radius: var(--radius);
}

.admin-stack > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.template-card {
  display: grid;
  gap: 16px;
}

.template-card img {
  width: 100%;
  aspect-ratio: 1200 / 753;
  object-fit: cover;
  box-shadow: none;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 420px;
  padding: 20px;
}

.plan-card.is-planned {
  border-style: dashed;
  background: linear-gradient(180deg, #f7f7f5 0%, #fff 70%);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 138px;
}

.plan-top h3 {
  font-size: 22px;
}

.planned-label {
  height: 28px;
  white-space: nowrap;
}

.plan-price-row {
  display: grid;
  gap: 2px;
  min-height: 66px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.plan-price-row strong {
  font-size: 24px;
  line-height: 1.1;
}

.plan-price-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.plan-summary-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-summary-list li {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.legal-list div {
  display: grid;
  gap: 2px;
}

.legal-list dt {
  color: var(--ink);
  font-weight: 800;
}

.legal-list dd {
  margin: 0;
}

.center-row {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  min-width: 0;
  padding: 22px;
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

pre {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border-radius: var(--radius);
  color: #f0f0f0;
  background: #111;
  font-size: 13px;
  line-height: 1.55;
}

pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  white-space: pre;
}

.cta-section {
  padding: 80px 0;
}

.cta-box {
  padding: 42px;
  background: #f8f8f6;
}

.page-hero {
  padding: 86px 0 42px;
  background: var(--soft);
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.legal-stack {
  display: grid;
  gap: 30px;
}

.legal-stack article {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.notice {
  border-radius: var(--radius);
}

.legal-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.comparison-matrix-region {
  --matrix-sticky-top: 78px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.comparison-matrix-head-wrap {
  position: sticky;
  top: var(--matrix-sticky-top);
  z-index: 6;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #efefec;
}

.comparison-matrix-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
}

.comparison-matrix {
  display: grid;
  min-width: 1048px;
  align-items: stretch;
}

.comparison-matrix-head {
  background: #efefec;
}

.matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-align: center;
}

.matrix-cell:nth-child(6n) {
  border-right: 0;
}

.matrix-col-head,
.matrix-corner,
.matrix-row-head {
  color: var(--ink);
  background: #f8f8f6;
  font-weight: 800;
}

.matrix-col-head,
.matrix-corner {
  background: #efefec;
}

.comparison-matrix-head .matrix-cell {
  border-bottom: 0;
}

.comparison-matrix-head .matrix-cell:last-child,
.comparison-matrix-body .matrix-cell:last-child {
  border-right: 0;
}

.matrix-row-head {
  justify-content: flex-start;
  text-align: left;
}

.matrix-value-cell {
  flex-direction: column;
  gap: 4px;
}

.matrix-subtext {
  color: var(--muted);
  font-size: 12px;
}

.table-check-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.table-check-stack.is-empty {
  min-height: 18px;
}

.table-check {
  display: block;
  width: 8px;
  height: 14px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-1px);
}

.table-check-note {
  display: block;
}

.table-muted {
  color: #9a9a9a;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 8px;
}

.site-footer p,
.footer-links {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: fixed;
    right: 0;
    left: 0;
  }

  main {
    padding-top: 64px;
  }

  .shell,
  .narrow {
    width: min(100% - 36px, 1120px);
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 64px;
    padding: 10px 0;
  }

  .brand-logo {
    width: calc(34px - 5px * var(--scroll-t));
    height: calc(34px - 5px * var(--scroll-t));
  }

  .brand-name {
    font-size: calc(18px - 2px * var(--scroll-t));
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    overflow-x: auto;
    font-size: 12px;
    scrollbar-width: none;
  }

  .lang-switch {
    min-width: 36px;
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .matrix-col-head,
  .matrix-corner,
  .comparison-matrix-head-wrap {
    top: 64px;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-section {
    padding: 46px 0 52px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 34px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  h2 {
    font-size: 27px;
  }

  .lead,
  .section-head p,
  .split-grid p,
  .cta-box p,
  .page-hero p {
    font-size: 15px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-media {
    padding: 10px;
    transform: none;
  }

  .section {
    padding: 62px 0;
  }

  .feature-grid,
  .template-grid,
  .plan-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-index {
    margin-bottom: 22px;
  }

  .split-grid {
    gap: 32px;
  }

  .admin-stack > div,
  .hero-thumbs {
    gap: 8px;
  }

  .plan-card {
    min-height: auto;
  }

  .plan-top,
  .plan-price-row {
    min-height: auto;
  }

  .cta-section {
    padding: 58px 0;
  }

  .cta-box {
    padding: 28px;
  }

  .footer-grid {
    display: grid;
  }
}
