:root {
  --navy: #0f1f45;
  --navy-2: #16295c;
  --navy-3: #1e2f66;
  --blue: #2f5fd6;
  --cta: #f5a524;
  --cta-hover: #e59410;
  --ice: #eaf0fc;
  --ice-2: #f4f7fd;
  --ink: #1b2433;
  --ink-sub: #3a4356;
  --gray-sub: #687182;
  --line: #e3e8f0;
  --white: #fff;
  --axis-comm: #a25108;
  --axis-comm-bg: #fbe6d2;
  --axis-cost: #127a54;
  --axis-cost-bg: #d9f2e6;
  --axis-quality: #6339b8;
  --axis-quality-bg: #e8dff9;
  --on-dark-strong: #dbe4fa;
  --on-dark: #c7d3f0;
  --on-dark-accent: #9fb8f5;
  --on-dark-muted: #8293bf;
  --overlay-08: rgb(255 255 255 / 8%);
  --overlay-55: rgb(255 255 255 / 55%);
  --shadow-hero: rgb(0 0 0 / 35%);
}

#contents,
:where(#contents) * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

#contents {
  background: var(--white);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

:where(#contents) img {
  display: block;
  max-width: 100%;
}

:where(#contents) a {
  color: inherit;
  text-decoration: none;
}

:where(#contents) ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------------- Accessibility ---------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
  clip-path: inset(50%);
}

:where(#contents) :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.site-header :focus-visible,
section.hero :focus-visible {
  outline-color: var(--white);
}

/* ---------------- 日本語の折り返し ---------------- */

.section-title,
.card h3,
.case-card h3,
.step-item h3,
.cta-band-title,
.pricing-box h2,
.faq-item summary {
  text-wrap: balance;
  word-break: auto-phrase;
}

.lead,
.card p,
.case-card p,
.step-item p,
.cta-band-lead,
.pricing-box p,
.faq-answer {
  text-wrap: pretty;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h2.section-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

p.lead {
  margin: 0 0 40px;
  color: var(--ink-sub);
  font-size: 16px;
  line-height: 1.8;
}

p.lead.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.eyebrow.center,
h2.section-title.center {
  text-align: center;
}

:where(#contents) section {
  padding: 84px 0;
}

section.bg-white {
  background: var(--white);
}

section.bg-ice {
  background: var(--ice-2);
}

/* ---------------- アンカーの着地表示 ---------------- */

section[id]:target .eyebrow {
  width: fit-content;
  border-radius: 3px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--blue);
}

section[id]:target .eyebrow.center {
  margin-right: auto;
  margin-left: auto;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--overlay-08);
  background: var(--navy);
}

#pagetop {
  display: block;
  height: 0;
}

#pagetop:focus-visible {
  outline: none;
}

#pagetop:focus-visible + .site-header {
  outline: 3px solid var(--white);
  outline-offset: -3px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

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

@media (max-width: 860px) {
  .site-header,
  .header-inner {
    display: contents;
  }

  nav.main-nav {
    gap: 14px;
    width: 100%;
    padding: 14px 24px;
    background: var(--navy);
  }

  .header-actions {
    position: sticky;
    top: 0;
    z-index: 50;
    justify-content: center;
    padding: 10px 24px;
    border-bottom: 1px solid var(--overlay-08);
    background: var(--navy);
  }
}

:where(#contents) section[id] {
  scroll-margin-top: 84px;
}

@media (max-width: 860px) {
  :where(#contents) section[id] {
    scroll-margin-top: 74px;
  }
}

nav.main-nav a {
  color: var(--on-dark-strong);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

nav.main-nav a:hover {
  color: var(--white);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-primary {
  border-width: 2px;
  border-color: var(--navy);
  background: var(--cta);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--cta-hover);
}

.btn-outline-light {
  border-color: var(--overlay-55);
  color: var(--white);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: var(--overlay-08);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------------- Hero ---------------- */

section.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  text-align: left;
}

.hero-copy {
  max-width: min(560px, 56vw);
  margin-bottom: 36px;
}

.hero-title span {
  display: inline-block;
}

.hero-title {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero-sub {
  margin: 0 0 10px;
  color: var(--on-dark-strong);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 700;
}

.hero-logo {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-logo-tm {
  font-size: 0.4em;
  vertical-align: super;
}

.hero-logo-kana {
  margin-left: 10px;
  color: var(--on-dark-accent);
  font-size: 0.38em;
  font-weight: 700;
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 100%;
  max-width: 1300px;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 34%) 15%, rgb(0 0 0 / 34%) 48%, #000 64%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero .lead {
  max-width: min(500px, 44vw);
  margin: 0 0 30px;
  color: var(--on-dark);
  font-size: 16px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  color: var(--on-dark-muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  section.hero {
    text-align: center;
  }

  .hero .lead {
    max-width: none;
    margin: 0 auto 30px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-copy {
    max-width: none;
  }
}

/* ---------------- Cards grid ---------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

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

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

section.bg-ice .card {
  background: var(--white);
}

#problems .card {
  border-color: transparent;
  background: var(--ice-2);
}

.icon-badge {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--ice);
}

.icon-badge svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: var(--blue);
}

.icon-badge svg.icon-solid {
  fill: var(--blue);
  stroke: none;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.4;
}

.card p {
  margin: 0;
  color: var(--ink-sub);
  font-size: 15px;
  line-height: 1.6;
}

.card-illust {
  width: auto;
  height: 150px;
  margin: 0 auto 18px;
}

/* ---------------- Table (section 05) ---------------- */
table.eval-table {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
  border-collapse: collapse;
}

table.eval-table thead th {
  padding: 14px 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
}

table.eval-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-sub);
  font-size: 13.5px;
  line-height: 1.6;
  vertical-align: top;
}

table.eval-table tbody th.label {
  width: 160px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.6;
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}

table.eval-table tbody tr:nth-child(odd)>* {
  background: var(--ice-2);
}

/* ---------------- Steps flow ---------------- */

.steps-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  position: relative;
  flex: 1 1 0;
  min-width: 150px;
  padding: 0 14px;
  text-align: center;
}

.step-item .step-num {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.step-item h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
}

.step-item p {
  margin: 0;
  color: var(--ink-sub);
  font-size: 14px;
  line-height: 1.6;
}

.step-item:not(:last-child)::after {
  position: absolute;
  top: 20px;
  right: calc(-50% + 60px);
  left: calc(50% + 60px);
  height: 2px;
  background: var(--line);
  content: "";
}

@media (max-width: 860px) {
  .steps-flow {
    flex-direction: column;
    gap: 26px;
  }

  .step-item:not(:last-child)::after {
    display: none;
  }
}

/* ---------------- Use-case cards (section 08) ---------------- */
.case-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.case-tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.case-tag.comm {
  background: var(--axis-comm-bg);
  color: var(--axis-comm);
}

.case-tag.cost {
  background: var(--axis-cost-bg);
  color: var(--axis-cost);
}

.case-tag.quality {
  background: var(--axis-quality-bg);
  color: var(--axis-quality);
}

.case-card .case-industry {
  margin-bottom: 10px;
  color: var(--gray-sub);
  font-size: 12px;
}

.case-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.4;
}

.case-card p {
  flex-grow: 1;
  margin: 0;
  color: var(--ink-sub);
  font-size: 15px;
  line-height: 1.6;
}

.disclaimer-note {
  margin-top: 22px;
  color: var(--gray-sub);
  font-size: 12px;
}

.disclaimer-note + .disclaimer-note {
  margin-top: 6px;
}

/* ---------------- 関連情報 ---------------- */

.link-list {
  border-top: 1px solid var(--line);
}

.link-list-item {
  border-bottom: 1px solid var(--line);
}

.link-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 4px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.7;
}

.link-row-label {
  flex: none;
  width: 7em;
  color: var(--gray-sub);
  font-size: 13px;
  font-weight: 700;
}

.link-row-title {
  flex: 1;
}

.link-row:hover .link-row-title {
  text-decoration: underline;
}

.link-row-blank {
  display: inline-block;
  margin-left: 6px;
  vertical-align: -2px;
}

@media (max-width: 560px) {
  .link-row {
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .link-row-label {
    width: 100%;
  }
}

/* ---------------- Mid-page CTA band ---------------- */
section.cta-band {
  padding: 56px 0;
  background: var(--navy);
  text-align: center;
}

.cta-band-title {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.4;
}

.cta-band-lead {
  margin: 0 0 26px;
  color: var(--on-dark);
  font-size: 16px;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------------- Pricing ---------------- */
.pricing-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  text-align: center;
}

.pricing-box h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.pricing-box p {
  margin: 0 0 26px;
  color: var(--ink-sub);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------------- FAQ (native details/summary, no JS) ---------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 11px;
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.faq-item[open] summary {
  border-radius: 11px 11px 0 0;
}

.faq-item summary:hover {
  background: var(--ice);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .q-badge {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.faq-item summary .chevron {
  display: flex;
  margin-left: auto;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq-item[open] summary .chevron {
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 16px 22px 20px 60px;
  color: var(--ink-sub);
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 760px) {
  section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .faq-item summary .chevron {
    transition: none;
  }
}

/* ---------------- 左右対比ブロック（一般的なPMOツールとの違い） ---------------- */
.vs {
  margin-top: 28px;
}

.vs-head,
.vs-row {
  display: grid;
  grid-template-columns: 132px 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.vs-head>div {
  justify-content: center;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.vs-old,
.vs-new {
  display: flex;
  align-items: center;
  padding: 18px;
  line-height: 1.6;
}

.vs-axis {
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.6;
}

.vs-old {
  color: var(--gray-sub);
}

.vs-new {
  border-right: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.vs-head .vs-new {
  border-top: 2px solid var(--blue);
  border-radius: 12px 12px 0 0;
  background: var(--blue);
  color: var(--white);
  font-size: 18px;
}

.vs-row:last-child .vs-new {
  border-bottom: 2px solid var(--blue);
  border-radius: 0 0 12px 12px;
}

.vs-row:nth-child(even) .vs-axis,
.vs-row:nth-child(even) .vs-old {
  background: var(--ice-2);
}

.vs-tag {
  display: none;
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 700;
}

.vs-old .vs-tag {
  color: var(--gray-sub);
}

.vs-new .vs-tag {
  color: var(--blue);
}

@media (max-width:640px) {
  .vs-head {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .vs-row {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .vs-axis {
    display: block;
    padding: 18px 2px 6px;
    font-size: 12.5px;
  }

  .vs-row:nth-child(even) .vs-axis {
    background: transparent;
  }

  .vs-old,
  .vs-new {
    display: block;
    padding: 14px 16px;
  }

  .vs-old {
    border-radius: 12px;
    background: var(--ice-2);
  }

  .vs-new {
    margin-top: 8px;
    border: 2px solid var(--blue);
    border-radius: 12px;
  }

  .vs-row:last-child .vs-new {
    border-radius: 12px;
  }

  .vs-tag {
    display: block;
  }

  .vs-new .vs-tag {
    font-size: .85rem;
    font-weight: 800;
  }
}

.safety-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.safety-item .icon-badge {
  flex: 0 0 auto;
}

.safety-item .safety-body h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1rem;
}

.safety-item .safety-body p {
  margin: 0;
  color: var(--ink-sub);
  line-height: 1.7;
}

/* ---------------- トップへ戻る ---------------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 64px;
  height: 64px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 6px 20px var(--shadow-hero);
}

.to-top:hover {
  background: var(--navy-3);
}

.to-top:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy), 0 6px 20px var(--shadow-hero);
}

@media (max-width: 760px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .to-top-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    clip-path: inset(50%);
  }

  .to-top svg {
    width: 18px;
    height: 18px;
  }
}
