/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f7fbf9;
  color: #1a2820;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════════ */
:root {
  --teal:       #0D7A5F;
  --teal-mid:   #1D9E75;
  --teal-light: #E0F2EB;
  --teal-pale:  #F0FAF6;
  --navy:       #071811;
  --body:       #1a2820;
  --muted:      #4d6359;
  --border:     #cce0d9;
  --bg:         #f7fbf9;
  --white:      #ffffff;
  --amber:      #946010;
  --amber-light:#fef3dc;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
}

/* ═══════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════ */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #071811 0%, #0D7A5F 55%, #1D9E75 100%);
  padding: 60px 24px 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -120px;
  width: 500px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  transform: translateX(-30%);
}
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
.hero-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #a8f0d5;
  padding: 4px 14px; border-radius: 100px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 18px;
}
.hero h1 em { color: #a8f0d5; font-style: normal; }
.hero-lead {
  font-size: 14px;
  color: rgba(255,255,255,.82);
  line-height: 1.85;
  margin-bottom: 22px;
  max-width: 520px;
}
/* ── 修正①：双方向対応チップ ── */
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  padding: 5px 13px; border-radius: 100px;
}
.chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--teal);
  font-size: 15px; font-weight: 700;
  padding: 14px 32px; border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.22); }
.hero-sub { font-size: 12px; color: rgba(255,255,255,.55); }

/* ═══════════════════════════════════════════════
   TOC
═══════════════════════════════════════════════ */
.toc-wrap { max-width: 860px; margin: 40px auto; padding: 0 24px; }
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.toc h2 { font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 12px; }
.toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.toc a {
  font-size: 13px; color: var(--teal);
  text-decoration: none;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 0;
  transition: color .12s;
}
.toc a::before { content: '·'; font-size: 18px; line-height: 1; }
.toc a:hover { color: var(--teal-mid); text-decoration: underline; }

/* ═══════════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════════ */
.section { padding: 60px 24px; }
.section + .section { border-top: 1px solid var(--border); }
.section.bg-pale { background: var(--teal-pale); }
.section.bg-white { background: var(--white); }
.section.bg-dark { background: var(--navy); }
.section-inner { max-width: 860px; margin: 0 auto; }
.section-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700; margin-bottom: 10px;
  line-height: 1.35;
}
.section-lead {
  font-size: 14px; color: var(--muted);
  line-height: 1.85; max-width: 600px;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════
   WHAT IS PE
═══════════════════════════════════════════════ */
.pe-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pe-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.pe-card.featured {
  border-color: var(--teal-mid);
  border-width: 2px;
  background: var(--teal-pale);
}
.pe-card-icon { font-size: 28px; margin-bottom: 10px; }
.pe-card-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.pe-card.featured .pe-card-label { color: var(--teal); }
.pe-card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.pe-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pe-badge {
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.badge-ok  { background: #e0f2eb; color: #0D7A5F; }
.badge-ng  { background: #fde8e8; color: #b83030; }
.badge-ok2 { background: #e0f2eb; color: #0D7A5F; }
.pe-card p { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ═══════════════════════════════════════════════
   WORKFLOW
═══════════════════════════════════════════════ */
.workflow {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.step {
  flex: 1 1 0;
  min-width: 130px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 18px 14px;
  text-align: center;
  position: relative;
}
.step:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.step:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.step + .step { border-left: none; }
.step.highlight { background: var(--teal); border-color: var(--teal); }
.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-mid); margin-bottom: 6px;
}
.step.highlight .step-num { color: rgba(255,255,255,.7); }
.step-title { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.step.highlight .step-title { color: #fff; }
.step-body { font-size: 11px; color: var(--muted); line-height: 1.6; }
.step.highlight .step-body { color: rgba(255,255,255,.8); }
.step-arrow {
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid var(--border);
  z-index: 2;
}
.step.highlight .step-arrow { border-left-color: var(--teal); }
.step:last-child .step-arrow { display: none; }

/* ═══════════════════════════════════════════════
   PRICING PLANS
═══════════════════════════════════════════════ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px 18px;
  position: relative;
  text-align: center;
  display: flex; flex-direction: column;
}
.plan-card.recommended {
  border-color: var(--teal-mid);
  border-width: 2px;
  box-shadow: 0 4px 24px rgba(13,122,95,.12);
}
.plan-badge-top {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 100px;
  white-space: nowrap;
}
.plan-type {
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-mid); margin-bottom: 4px;
}
.plan-type.human { color: var(--amber); }
.plan-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.plan-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.plan-price {
  font-family: 'Outfit', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--teal); margin-bottom: 2px;
  line-height: 1;
}
.plan-price sup { font-size: 14px; }
.plan-price-note { font-size: 10px; color: var(--muted); margin-bottom: 14px; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.plan-detail { margin-bottom: 12px; flex: 1; }
.plan-detail-row {
  display: flex; gap: 6px;
  font-size: 11px; line-height: 1.55;
  margin-bottom: 6px;
  text-align: left;
}
.plan-detail-label {
  color: var(--muted); min-width: 58px;
  font-size: 10px; padding-top: 1px;
}
.plan-detail-val { color: var(--body); font-weight: 500; flex: 1; }
.plan-recommend {
  font-size: 11px; color: var(--muted);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 12px;
}
.plan-recommend strong { color: var(--teal); display: block; font-size: 10px; margin-bottom: 2px; }
.btn-plan {
  display: block;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 12px; font-weight: 700;
  padding: 9px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  transition: background .15s, color .15s;
}
.btn-plan:hover, .plan-card.recommended .btn-plan {
  background: var(--teal); color: #fff;
}
.plan-note {
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   COMPARISON TABLE — 修正④：〇印
═══════════════════════════════════════════════ */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
table.compare {
  width: 100%; border-collapse: collapse;
  font-size: 13px; background: var(--white);
}
table.compare thead th {
  padding: 12px 10px;
  text-align: center;
  font-size: 12px; font-weight: 700;
  vertical-align: bottom;
  border-bottom: 2px solid var(--border);
}
table.compare thead th.label-col {
  text-align: left; min-width: 120px;
}
table.compare thead th.recommended {
  background: var(--teal-pale);
  color: var(--teal);
}
table.compare tbody tr { border-bottom: 1px solid var(--border); }
table.compare tbody tr:last-child { border-bottom: none; }
table.compare tbody td {
  padding: 11px 10px;
  text-align: center; color: var(--muted);
  vertical-align: middle;
}
table.compare tbody td.label-col {
  text-align: left; font-weight: 500;
  color: var(--body); font-size: 13px;
}
table.compare tbody td.recommended { background: var(--teal-pale); }
table.compare .mark-o {
  font-size: 18px; font-weight: 700;
  color: var(--teal);
}
table.compare .mark-dash { color: #ccc; }
table.compare .price-cell {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--teal);
}
table.compare .plan-th-name { font-size: 13px; }
table.compare .plan-th-price {
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--teal); display: block; margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   USE CASES
═══════════════════════════════════════════════ */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.usecase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.usecase-icon { font-size: 24px; }
.usecase-title { font-size: 14px; font-weight: 700; }
.usecase-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }
.usecase-plan {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--teal); border: 1.5px solid var(--teal);
  border-radius: 100px; padding: 3px 12px;
  align-self: flex-start;
  text-decoration: none;
}
.cta-center { text-align: center; margin-top: 8px; }
.btn-secondary {
  display: inline-block;
  background: var(--teal); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 14px 40px; border-radius: var(--radius-md);
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn-secondary:hover { background: var(--teal-mid); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   AI SEARCH TABLE
═══════════════════════════════════════════════ */
.ai-search-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
table.ai-search {
  width: 100%; border-collapse: collapse;
  font-size: 13px; background: var(--white);
}
table.ai-search thead th {
  background: var(--teal); color: #fff;
  padding: 11px 16px; font-size: 12px; font-weight: 700;
  text-align: left;
}
table.ai-search tbody tr { border-bottom: 1px solid var(--border); }
table.ai-search tbody tr:last-child { border-bottom: none; }
table.ai-search tbody td {
  padding: 11px 16px; font-size: 13px;
  color: var(--body); line-height: 1.65;
  vertical-align: top;
}
table.ai-search tbody tr:nth-child(even) td { background: var(--teal-pale); }
.ai-plan-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  background: var(--teal-light); color: var(--teal);
  padding: 2px 10px; border-radius: 100px;
}

/* ═══════════════════════════════════════════════
   WHY CASEQUARE — 修正⑤：3か国語
═══════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}
.why-num {
  font-family: 'Outfit', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #a8f0d5; margin-bottom: 10px;
}
.why-title {
  font-size: 16px; font-weight: 700;
  color: #fff; margin-bottom: 10px;
  line-height: 1.45;
}
.why-body { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.75; }

/* ═══════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
details.faq-item summary {
  padding: 16px 20px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 10px;
  user-select: none;
}
details.faq-item summary::before {
  content: 'Q';
  background: var(--teal); color: #fff;
  font-size: 12px; font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
details.faq-item summary::after {
  content: '+';
  font-size: 20px; color: var(--teal);
  margin-left: auto; font-weight: 300;
  transition: transform .2s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-body {
  padding: 0 20px 18px 52px;
  font-size: 13px; color: var(--muted);
  line-height: 1.8;
}
details.faq-item .faq-body ul { padding-left: 16px; margin-top: 6px; }
details.faq-item .faq-body li { margin-bottom: 4px; }

/* ═══════════════════════════════════════════════
   RELATED SERVICES
═══════════════════════════════════════════════ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.related-link {
  display: flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--body); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.related-link::before {
  content: '→';
  color: var(--teal); font-weight: 700; flex-shrink: 0;
}
.related-link:hover { border-color: var(--teal); color: var(--teal); }

/* ═══════════════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════════════ */
.final-cta {
  background: linear-gradient(135deg, #0D7A5F, #1D9E75);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
  margin: 0 24px 60px;
  max-width: 812px;
  margin-left: auto; margin-right: auto;
}
.final-cta h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.final-cta p { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 24px; }
.final-cta .btn-cta {
  display: inline-block;
  background: #fff; color: var(--teal);
  font-size: 16px; font-weight: 700;
  padding: 15px 44px; border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .15s;
}
.final-cta .btn-cta:hover { transform: translateY(-2px); }
.final-cta-sub {
  font-size: 12px; color: rgba(255,255,255,.55);
  margin-top: 12px; display: flex;
  justify-content: center; gap: 18px;
}

/* ═══════════════════════════════════════════════
   NOTICE BOX
═══════════════════════════════════════════════ */
.notice {
  background: var(--amber-light);
  border: 1px solid #e8c570;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 12px; color: var(--amber);
  line-height: 1.75; margin-top: 12px;
}
.notice strong { font-weight: 700; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 720px) {
  .pe-compare, .usecase-grid, .why-grid, .related-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { flex-wrap: wrap; }
  .step { min-width: 45%; border-radius: var(--radius-sm) !important; }
  .toc-grid { grid-template-columns: 1fr; }
  .final-cta { margin: 0 16px 40px; padding: 32px 20px; }
}
@media (max-width: 480px) {
  .plans-grid { grid-template-columns: 1fr; }
}