:root {
  --ink: #101318;
  --muted: #5c6573;
  --line: #d8dde5;
  --surface: #ffffff;
  --surface-muted: #f4f6f8;
  --surface-strong: #161a21;
  --accent: #2864d8;
  --accent-soft: #e7efff;
  --warm: #9a6516;
  --warm-soft: #fff2dc;
  --good: #15715b;
  --good-soft: #e2f6ee;
  --shadow: 0 18px 50px rgba(20, 28, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

button,
a.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
a.button:hover,
.link-row a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.i18n-ja {
  display: none;
}

body[data-lang="ja"] .i18n-en {
  display: none;
}

body[data-lang="ja"] .i18n-ja {
  display: inline;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.language-switch,
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.language-switch button,
.filter-row button {
  padding: 8px 12px;
  font-size: 13px;
}

.language-switch button[aria-pressed="true"],
.filter-row button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 48px;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: 68px;
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-lede {
  max-width: 820px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.hero-panel div {
  padding: 22px;
  background: var(--surface);
}

.metric,
.metric-label {
  display: block;
}

.metric {
  font-size: 42px;
  font-weight: 850;
}

.metric-label {
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
}

.intro-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.32;
}

.guide-section {
  display: grid;
  gap: 24px;
}

.guide-copy {
  max-width: 850px;
}

.guide-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-card h3,
.guide-card p {
  margin-bottom: 0;
}

.guide-card p {
  color: var(--muted);
}

.quick-review-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-review-panel h3,
.quick-review-panel p {
  margin-bottom: 0;
}

.quick-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-steps article {
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.quick-steps span {
  color: var(--muted);
  font-size: 14px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}

.route-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: #ffffff;
}

.route-panel h3,
.route-panel p {
  margin-bottom: 0;
}

.route-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.route-links a {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  text-decoration: none;
}

.route-links span {
  color: #d5dbe5;
  font-size: 14px;
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.filter-row {
  margin-bottom: 14px;
}

.status-legend {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-legend .legend-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-legend .legend-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 680px) {
  .status-legend {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  flex-direction: column;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #dfe4eb;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.project-body p {
  color: var(--muted);
}

.project-body .value-line {
  margin: -2px 0 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
}

.featured-card {
  grid-column: span 1;
}

.card-topline {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tag,
.status,
.proof-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.tag {
  background: var(--surface-muted);
  color: var(--muted);
}

.status {
  color: var(--ink);
}

.status.submitted {
  background: var(--good-soft);
  color: var(--good);
}

.status.live {
  background: var(--surface-strong);
  color: #ffffff;
}

.status.ready {
  background: var(--accent-soft);
  color: var(--accent);
}

.status.queued,
.status.proof {
  background: var(--warm-soft);
  color: var(--warm);
}

.proof-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: auto 0 18px;
}

.proof-list span {
  border: 1px solid var(--line);
  color: var(--muted);
}

.link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.system-section {
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: #eceff3;
}

.compact-grid .project-card {
  box-shadow: none;
}

.proof-section {
  padding-bottom: 72px;
}

.proof-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.proof-copy {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: #ffffff;
}

.proof-copy h3 {
  color: #ffffff;
}

.proof-copy ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
  color: #d5dbe5;
}

.proof-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.proof-table [role="row"] {
  display: grid;
  grid-template-columns: 1fr 0.55fr 1.25fr;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.proof-table [role="row"]:last-child {
  border-bottom: 0;
}

.table-head {
  background: var(--surface-strong);
  color: #ffffff;
  font-weight: 800;
}

.proof-table span {
  min-width: 0;
}

.site-footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .hero,
  .proof-layout {
    grid-template-columns: 1fr;
  }

  .guide-grid,
  .route-panel,
  .route-links,
  .quick-steps {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 52px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-links {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .intro-band p {
    font-size: 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .proof-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
