:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #06111f;
  --muted: #637083;
  --line: #dfe5ea;
  --line-strong: #cfd8df;
  --soft: #f2f5f7;
  --soft-2: #eef3f0;
  --green: #02bd7f;
  --green-dark: #00895e;
  --navy: #071426;
  --blue: #1268d8;
  --amber: #f4b63f;
  --rose: #9f1239;
  --shadow: 0 18px 45px rgba(13, 28, 43, 0.08);
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans JP", "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(6, 17, 31, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 96px 96px, 96px 96px, auto;
}

a,
button {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  height: 64px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-family: "BIZ UDPGothic", "IBM Plex Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--paper);
  background: var(--navy);
  border-radius: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.nav-links a,
.footer-links a,
.mini-link-list a,
.seo-card a,
.article-toc a,
.article-body a,
.cta-link {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.mini-link-list a:hover,
.seo-card a:hover,
.article-toc a:hover,
.article-body a:hover,
.cta-link:hover {
  color: var(--blue);
}

.icon-link {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}

.icon-link:hover {
  color: var(--green-dark);
  background: var(--soft-2);
  border-color: rgba(2, 189, 127, 0.24);
}

.eyebrow {
  margin: 0;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: "BIZ UDPGothic", "IBM Plex Sans JP", sans-serif;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: "BIZ UDPGothic", "IBM Plex Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero-line {
  display: inline;
}

.rule-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: center;
  margin: 32px 0 42px;
}

.rule-hero-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 620px;
}

.rule-hero-copy p:not(.eyebrow),
.simple-hero p,
.form-panel-head p,
.diagnosis-summary p,
.notice-panel p,
.workflow-strip p,
.workspace-summary p,
.seo-section-head p,
.seo-card p,
.content-page p,
.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-lead {
  color: var(--ink) !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
}

.hero-promise-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 560px);
}

.hero-promise-list div {
  min-width: 0;
  padding: 11px 12px;
  background: var(--navy);
  border-radius: 6px;
}

.hero-promise-list strong,
.hero-promise-list span {
  display: block;
}

.hero-promise-list strong {
  color: var(--paper);
  font-size: 16px;
}

.hero-promise-list span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.member-gate {
  display: grid;
  gap: 9px;
  justify-items: start;
  width: min(100%, 460px);
  margin: 4px 0 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.primary-button {
  color: var(--paper);
  background: var(--green);
  border: 1px solid var(--green);
  box-shadow: 0 12px 24px rgba(2, 189, 127, 0.18);
}

.secondary-button {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.action-button {
  width: auto;
  min-width: 150px;
  gap: 7px;
  white-space: normal;
}

.rule-search-panel,
.form-panel,
.dashboard-panel,
.diagnosis-summary,
.workspace-summary {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.rule-search-panel {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 18px;
}

.panel-heading,
.form-panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.panel-heading h2,
.form-panel-head h2 {
  margin: 3px 0 0;
}

.auth-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--green-dark);
  background: var(--soft-2);
  border: 1px solid rgba(2, 189, 127, 0.2);
  border-radius: 8px;
}

.auth-icon.small {
  width: 36px;
  height: 36px;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-stat-row div {
  min-width: 0;
  padding: 10px;
  background: var(--soft);
  border-radius: 6px;
}

.hero-stat-row strong,
.hero-stat-row span {
  display: block;
}

.hero-stat-row strong {
  font-size: 17px;
}

.hero-stat-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.mini-doc-list,
.detail-list,
.mini-link-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mini-doc-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.mini-doc-list article:last-child {
  border-bottom: 0;
}

.mini-doc-list span:not(.logo-tile) {
  font-size: 13px;
  font-weight: 700;
}

.mini-doc-list strong {
  display: grid;
  min-width: 28px;
  min-height: 24px;
  place-items: center;
  color: var(--green-dark);
  background: var(--soft-2);
  border-radius: 5px;
  font-size: 11px;
}

.mini-link-list a {
  display: block;
  padding: 11px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mini-link-list a:last-child {
  border-bottom: 0;
}

.logo-tile {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.logo-tile.strategy {
  background: var(--navy);
}

.logo-tile.management {
  background: var(--green-dark);
}

.logo-tile.technology {
  background: var(--blue);
}

.logo-tile.balanced {
  color: var(--navy);
  background: var(--amber);
}

.notice-panel {
  padding: 12px;
  background: var(--soft-2);
  border: 1px solid rgba(2, 189, 127, 0.18);
  border-radius: 6px;
}

.notice-panel.compact {
  max-width: 620px;
}

.notice-panel strong {
  display: block;
  font-size: 12px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 42px;
}

.workflow-strip article {
  min-width: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.workflow-strip span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
}

.workflow-strip h2 {
  margin: 8px 0 6px;
}

.seo-hub {
  display: grid;
  gap: 18px;
  padding: 28px 0 6px;
  margin: 0 0 36px;
  border-top: 1px solid var(--line-strong);
}

.seo-section-head {
  display: grid;
  gap: 7px;
  max-width: 760px;
}

.seo-card-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-card,
.resource-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.seo-card h2,
.resource-card h2 {
  font-size: 15px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin: 30px 0 20px;
  color: var(--paper);
  background: var(--navy);
  border-radius: 6px;
}

.cta-band h2 {
  color: var(--paper);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
}

.cta-band .primary-button {
  width: auto;
  color: var(--navy);
  background: var(--paper);
  border-color: var(--paper);
  box-shadow: none;
}

.simple-hero {
  max-width: 760px;
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--line-strong);
}

.simple-hero h1 {
  margin-top: 5px;
}

.diagnosis-layout,
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.form-panel,
.dashboard-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(6, 17, 31, 0.08);
  overflow: hidden;
}

.progress div {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: inherit;
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.choice span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--green-dark);
  background: var(--soft-2);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.choice strong {
  font-size: 13px;
  line-height: 1.55;
}

.choice.is-selected {
  background: var(--soft-2);
  border-color: rgba(2, 189, 127, 0.34);
  box-shadow: 0 0 0 4px rgba(2, 189, 127, 0.1);
}

.choice:disabled {
  cursor: default;
}

.choice.is-correct {
  border-color: rgba(2, 137, 94, 0.55);
  background: rgba(2, 189, 127, 0.1);
}

.choice.is-correct span {
  color: var(--paper);
  background: var(--green-dark);
}

.choice.is-incorrect {
  border-color: rgba(159, 18, 57, 0.42);
  background: rgba(159, 18, 57, 0.07);
}

.choice.is-incorrect span {
  color: var(--paper);
  background: var(--rose);
}

.answer-feedback {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 6px;
}

.answer-feedback.is-correct {
  border-left-color: var(--green-dark);
}

.answer-feedback.is-incorrect {
  border-left-color: var(--rose);
}

.answer-feedback div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.answer-mark {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--paper);
  background: var(--navy);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
}

.is-correct .answer-mark {
  background: var(--green-dark);
}

.is-incorrect .answer-mark {
  background: var(--rose);
}

.answer-feedback p,
.answer-feedback small {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.65;
}

.answer-feedback small {
  color: var(--muted);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 0;
}

.score-ring,
.workspace-score {
  display: grid;
  width: 118px;
  height: 118px;
  margin: 0 auto;
  place-items: center;
  color: var(--green-dark);
  background:
    radial-gradient(circle at center, var(--paper) 56%, transparent 57%),
    conic-gradient(var(--green) 0 68%, rgba(2, 189, 127, 0.14) 68% 100%);
  border-radius: 50%;
}

.score-ring span,
.workspace-score span {
  display: block;
  margin-bottom: -26px;
  font-size: 30px;
  font-weight: 700;
}

.score-ring small,
.workspace-score small {
  display: block;
  margin-top: -24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.diagnosis-summary {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.detail-list div {
  min-width: 0;
  padding: 10px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.detail-list dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.workspace-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin: 22px 0;
}

.workspace-score {
  width: 96px;
  height: 96px;
  margin: 0;
}

.workspace-score span {
  font-size: 26px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-top: 22px;
}

.score-list {
  display: grid;
  gap: 12px;
}

.domain-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}

.domain-row span,
.domain-row strong {
  font-size: 12px;
  font-weight: 700;
}

.domain-bar {
  height: 10px;
  overflow: hidden;
  background: rgba(6, 17, 31, 0.08);
  border-radius: 999px;
}

.domain-bar div {
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.priority-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.priority-summary strong {
  font-size: 22px;
}

.priority-summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.action-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}

.action-list li {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.75;
}

.answer-review-section {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-top: 18px;
}

.answer-review-list {
  display: grid;
  gap: 10px;
}

.answer-review-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 6px;
}

.answer-review-item.is-correct {
  border-left-color: var(--green-dark);
}

.answer-review-item.is-incorrect {
  border-left-color: var(--rose);
}

.answer-review-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.answer-review-head small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.answer-review-item p,
.answer-review-item small {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.65;
}

.answer-review-item dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.answer-review-item dl div {
  min-width: 0;
  padding: 10px;
  background: var(--soft);
  border-radius: 6px;
}

.answer-review-item dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.answer-review-item dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.review-complete-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.review-complete-actions strong {
  font-size: 13px;
}

.review-complete-actions p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  gap: 18px;
  width: 100%;
  min-height: 220px;
  padding: 42px max(20px, calc((100vw - var(--max)) / 2)) 28px;
  margin-top: 72px;
  background: linear-gradient(180deg, #f5f8fa, #eef2f4);
  border-top: 1px solid var(--line);
}

.site-footer ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.site-footer small {
  color: var(--muted);
  font-size: 10px;
}

.static-site .site-header {
  gap: 20px;
}

.static-site main {
  display: grid;
  gap: 30px;
}

.article-hero {
  display: grid;
  gap: 10px;
  max-width: 820px;
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--line-strong);
}

.article-hero h1 {
  max-width: 780px;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.article-toc strong {
  font-size: 12px;
}

.article-toc a {
  display: block;
  line-height: 1.5;
}

.article-body {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.article-body section,
.faq-list details,
.timeline-list li {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.article-body h2 {
  margin-bottom: 8px;
}

.article-body h3,
.resource-card strong {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.article-body ul,
.article-body ol,
.timeline-list {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.article-body li,
.timeline-list li {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.75;
}

.timeline-list {
  padding-left: 0;
  list-style: none;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.faq-list p {
  margin-top: 10px;
}

@media (max-width: 820px) {
  .site-header,
  main {
    width: calc(100% - 32px);
    max-width: 680px;
  }

  .rule-hero,
  .workflow-strip,
  .hero-stat-row,
  .diagnosis-layout,
  .workspace-summary,
  .dashboard-grid,
  .workspace-grid,
  .seo-card-grid,
  .resource-grid,
  .article-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 27px;
    line-height: 1.32;
  }

  .hero-line {
    display: block;
  }

  .rule-hero {
    margin-top: 22px;
  }

  .rule-hero-copy,
  .rule-hero-copy h1,
  .rule-hero-copy p,
  .rule-search-panel {
    width: 100%;
    max-width: 100%;
  }

  .rule-hero-copy p,
  .notice-panel p {
    word-break: normal;
  }

  .header-actions .icon-link:nth-last-child(-n + 2) {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hero-promise-list {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .rule-search-panel,
  .form-panel,
  .dashboard-panel,
  .answer-review-section,
  .diagnosis-summary,
  .workspace-summary {
    min-width: 0;
  }

  .answer-review-item dl {
    grid-template-columns: 1fr;
  }

  .review-complete-actions {
    grid-template-columns: 1fr;
  }

  .review-complete-actions .secondary-button {
    width: 100%;
  }

  .workflow-strip {
    gap: 8px;
  }

  .diagnosis-summary {
    position: static;
  }

  .workspace-summary {
    align-items: start;
  }

  .article-toc {
    position: static;
  }

  .cta-band .primary-button {
    width: 100%;
  }
}
