:root {
  --bg: #f7f5ef;
  --bg-deep: #0f2138;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --line: rgba(15, 33, 56, 0.12);
  --line-strong: rgba(15, 33, 56, 0.22);
  --text: #13233a;
  --text-soft: #44566f;
  --text-faint: #6f7e91;
  --accent: #b7874f;
  --accent-soft: rgba(183, 135, 79, 0.14);
  --cool: #8ea9c7;
  --cool-soft: rgba(142, 169, 199, 0.18);
  --ok: #5b7c68;
  --danger: #8a5d5d;
  --shadow-lg: 0 1px 2px rgba(15, 33, 56, 0.04), 0 8px 24px rgba(15, 33, 56, 0.06), 0 0 0 1px rgba(15, 33, 56, 0.05);
  --shadow-md: 0 1px 2px rgba(15, 33, 56, 0.03), 0 4px 12px rgba(15, 33, 56, 0.05);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(142,169,199,0.18), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(183,135,79,0.12), transparent 18%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.gd-shell {
  position: relative;
  overflow-x: clip;
}

.gd-shell::before,
.gd-shell::after {
  content: "";
  position: fixed;
  inset: auto auto 8% -8%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(183,135,79,0.10), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
  z-index: -1;
}
.gd-shell::after {
  inset: 12% -10% auto auto;
  background: radial-gradient(circle, rgba(142,169,199,0.16), transparent 70%);
}

.gd-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,33,56,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,33,56,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 65%);
  pointer-events: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--text-faint);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
}

.hero-title,
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.9rem, 5.3vw, 5.3rem);
  /* max-width は末尾の是正ブロックで一元管理する（2026-07-30） */
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  /* max-width は末尾の是正ブロックで一元管理する（2026-07-30） */
}

.lead,
.section-copy {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero {
  padding: 40px 0 80px;
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}

.hero-brand {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-nav {
  display: flex;
  gap: 24px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  padding-right: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 34px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15,33,56,0.08);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(183,135,79,0.12);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #be9057, #a57841);
  color: white;
  box-shadow: 0 1px 2px rgba(120, 85, 40, 0.10), 0 4px 12px rgba(120, 85, 40, 0.14);
}

.btn-secondary {
  background: rgba(255,255,255,0.54);
  color: var(--text);
  border-color: rgba(15,33,56,0.12);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(16,31,52,0.98), rgba(23,43,69,0.94));
  box-shadow: var(--shadow-lg);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(190,144,87,0.28), transparent 20%),
    radial-gradient(circle at 78% 28%, rgba(122,155,196,0.20), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 30%);
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
}

.floating-chip,
.floating-panel,
.signal-line {
  position: absolute;
}

.floating-chip {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
}

.floating-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  color: white;
}

.signal-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190,144,87,0.8), transparent);
  opacity: 0.7;
  animation: pulseLine 5s ease-in-out infinite;
}

@keyframes pulseLine {
  0%, 100% { transform: scaleX(0.6); opacity: 0.32; }
  50% { transform: scaleX(1); opacity: 0.88; }
}

.stage-card {
  position: absolute;
  inset: auto 28px 26px 28px;
  border-radius: 14px;
  padding: 24px;
  /* blur を外したので、写真の上でも読めるように地を濃い紺にする（2026-07-30） */
  background: rgba(13, 27, 46, 0.82);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.96);
}

.stage-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.stage-card p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.kpi {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.kpi strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.kpi span {
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
}

.problem-grid,
.card-grid,
.usecase-grid {
  display: grid;
  gap: 18px;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

.problem-card,
.value-card,
.usecase-card,
.logic-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.problem-card h3,
.value-card h3,
.usecase-card h3,
.logic-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.problem-card p,
.value-card p,
.usecase-card p,
.logic-card p,
.demo-copy p,
.stage-note,
.small-note {
  margin: 0;
  color: var(--text-soft);
}

.demo-section {
  padding-top: 88px;
}

.demo-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.demo-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.demo-copy {
  position: sticky;
  top: 24px;
}

.demo-copy .eyebrow { margin-bottom: 14px; }
.demo-copy h2 { margin-bottom: 18px; }
.demo-copy p + p { margin-top: 16px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(183,135,79,0.18);
  font-size: 0.9rem;
}

.demo-stage {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.76)),
    linear-gradient(135deg, rgba(142,169,199,0.08), rgba(183,135,79,0.08));
  border: 1px solid rgba(15,33,56,0.10);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 22%);
  pointer-events: none;
}

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.stage-toolbar h3 {
  font-size: 1.05rem;
}

.mini-tabs,
.segmented {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15,33,56,0.06);
  border: 1px solid rgba(15,33,56,0.08);
}

.tab-btn,
.segment-btn,
.filter-btn,
.quick-btn {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tab-btn:hover,
.segment-btn:hover,
.filter-btn:hover,
.quick-btn:hover { transform: translateY(-1px); }

.tab-btn.is-active,
.segment-btn.is-active,
.filter-btn.is-active,
.quick-btn.is-active {
  background: white;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(15,33,56,0.08);
}

.demo-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.list-panel,
.detail-panel,
.quiz-panel,
.flow-panel,
.search-panel,
.results-panel {
  border-radius: 24px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.list-title,
.detail-title,
.panel-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.issue-list {
  display: grid;
  gap: 12px;
}

.issue-btn {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,33,56,0.08);
  background: white;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.issue-btn:hover { transform: translateY(-1px); }
.issue-btn.is-active {
  border-color: rgba(183,135,79,0.32);
  box-shadow: 0 12px 30px rgba(15,33,56,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(247,244,238,0.92));
}

.issue-btn strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.issue-btn span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.flow-steps {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.flow-step {
  position: relative;
  padding: 18px 18px 18px 56px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,33,56,0.08);
}

.flow-step::before {
  content: attr(data-step);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(183,135,79,0.24);
}

.flow-step strong,
.detail-panel strong,
.quiz-panel strong,
.results-card strong,
.logic-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.flow-step p,
.detail-panel p,
.quiz-panel p,
.results-card p { margin: 0; color: var(--text-soft); }

.highlight-note {
  margin-top: 16px;
  border-radius: 20px;
  padding: 16px;
  background: var(--cool-soft);
  border: 1px solid rgba(142,169,199,0.24);
  color: var(--text);
}

.comparison-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.compare-card {
  min-height: 240px;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
}

.compare-card.old {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(238,238,236,0.86));
}

.compare-card.new {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,241,235,0.92));
  border-color: rgba(183,135,79,0.22);
}

.bullets {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.bullet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-soft);
}

.bullet .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.quiz-body {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.choice-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(15,33,56,0.08);
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.choice-btn:hover { transform: translateY(-1px); }
.choice-btn.correct {
  border-color: rgba(91,124,104,0.4);
  background: rgba(91,124,104,0.10);
}
.choice-btn.wrong {
  border-color: rgba(138,93,93,0.34);
  background: rgba(138,93,93,0.09);
}

.feedback {
  display: none;
  margin-top: 16px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(15,33,56,0.05);
  color: var(--text-soft);
}
.feedback.is-visible { display: block; }

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,33,56,0.08);
  margin-bottom: 14px;
}

.search-box input {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  font: inherit;
  color: var(--text);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.results-grid {
  display: grid;
  gap: 14px;
}

.results-card {
  border: 1px solid rgba(15,33,56,0.08);
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 16px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.84rem;
  background: rgba(15,33,56,0.05);
  color: var(--text-soft);
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.status-pill.progress::before { background: #7ca0d0; }
.status-pill.waiting::before { background: #d39a4d; }
.status-pill.done::before { background: #6ea17d; }

.logic-grid,
.usecase-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
}

.logic-card strong,
.usecase-card strong {
  font-size: 0.92rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usecase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-block {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 42px;
  background: linear-gradient(160deg, #11213a, #1d3453);
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 16%, rgba(190,144,87,0.22), transparent 20%),
    radial-gradient(circle at 84% 80%, rgba(142,169,199,0.18), transparent 26%);
}

.cta-block > * { position: relative; z-index: 1; }
/* .cta-block .section-title の max-width 指定は削除（2026-07-30）。
   子孫セレクタ（詳細度2）なので、後から積んだ .section-title の是正が一切効かず、
   CTA見出しだけが 14ch（≒250px）に取り残されて孤立行を量産していた。 */
.cta-block .section-copy { color: rgba(255,255,255,0.78); max-width: 56ch; margin-top: 18px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cta-block .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.18);
}

/* 明るい背景が既定。紺の .cta-block 内だけ白系に上書きする（2026-07-30）。
   以前は白固定だったため、明るい背景に置くと文字が読めなかった。 */
.footer-note {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 0.92rem;
}
.cta-block .footer-note { color: rgba(255,255,255,0.66); }

@media (max-width: 1100px) {
  .hero-layout,
  .demo-head,
  .demo-layout,
  .logic-grid,
  .usecase-grid,
  .problem-grid,
  .demo-grid,
  .comparison-wrap,
  .kpi-row {
    grid-template-columns: 1fr;
  }

  .hero-stage { min-height: 540px; }
  .demo-copy { position: static; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 24px; }
  .hero-topbar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-nav { flex-wrap: wrap; gap: 12px; }
  .hero-stage { min-height: 500px; }
  .stage-card { inset: auto 16px 16px 16px; padding: 18px; }
  .kpi-row { gap: 12px; }
  .problem-card,
  .value-card,
  .usecase-card,
  .logic-card,
  .demo-stage,
  .cta-block { padding: 20px; }
  .btn { width: 100%; }
  .stage-toolbar { align-items: flex-start; }
}

/* ===== LP共通ヘッダー / フッター（gd-site-*） ===== */
.gd-site-header {
  position: relative; z-index: 5;
  background: rgba(247, 245, 239, 0.86);
  border-bottom: 1px solid var(--line);
}
.gd-site-header__inner {
  display: flex; align-items: center; gap: 16px;
  padding-top: 14px; padding-bottom: 14px;
}
.gd-site-logo { display: inline-flex; align-items: center; }
.gd-site-logo img { height: 38px; width: auto; display: block; }
.gd-site-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.gd-site-link {
  color: var(--text-soft); text-decoration: none; font-size: 0.95rem;
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.gd-site-link:hover { color: var(--text); border-bottom-color: var(--accent); }
.gd-site-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: #fff; background: linear-gradient(135deg, #be9057, #a57841);
  box-shadow: 0 12px 30px rgba(165, 120, 65, 0.22);
  transition: transform .2s ease;
}
.gd-site-cta:hover { transform: translateY(-1px); }

.gd-site-footer {
  position: relative; z-index: 2;
  margin-top: 40px; padding: 48px 0 40px;
  background: var(--bg-deep); color: rgba(255, 255, 255, 0.82);
}
.gd-site-footer__inner { text-align: center; display: grid; gap: 6px; justify-items: center; }
.gd-foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-bottom: 8px;
}
.gd-foot-brand img { display: block; }
.gd-foot-line { margin: 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }
.gd-foot-line a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; }
.gd-foot-copy { margin: 12px 0 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* ===== Hero 背景画像ステージ ===== */
.hero-stage--image { padding: 0; overflow: hidden; }
.hero-stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-stage--image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 33, 56, 0.05), rgba(15, 33, 56, 0.45));
  pointer-events: none;
}
.hero-stage--image .stage-card { z-index: 2; }

/* ===== デモ・キービジュアル ===== */
.demo-visual {
  margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: var(--bg-deep);
}
.demo-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1320 / 737; object-fit: cover; }
@media (max-width: 720px) {
  .demo-visual { margin-bottom: 20px; }
  .gd-site-actions { gap: 12px; }
  .gd-site-header__inner { gap: 10px; }
  .gd-site-link { display: none; }
  .gd-site-logo img { height: 32px; }
}

/* ===== レイアウト改善（2026-07-08：見出し過大・画像過大・可読性の是正） ===== */
/* 見出しを適正サイズに。日本語が不自然に途切れないよう最大幅を拡張 */
.hero-title { font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.36; }
.section-title { font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.38; }
.lead { font-size: clamp(1rem, 1.25vw, 1.08rem); line-height: 1.95; max-width: 48ch; }
.section-copy { line-height: 1.9; max-width: 62ch; }
.demo-head { align-items: start; }

/* Hero 画像ステージを低く抑える */
.hero-stage { min-height: 400px; }

/* デモのキービジュアルを"帯"サイズに（全幅の巨大表示をやめ、内容を主役に） */
.demo-visual { max-width: 600px; margin: 0 auto 26px; }
.demo-visual img { aspect-ratio: auto; width: 100%; height: clamp(140px, 18vw, 210px); object-fit: cover; }

/* デモが操作できることを明示するヒント */
.demo-hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--text);
  border: 1px solid rgba(183, 135, 79, 0.28);
  font-size: 0.84rem; font-weight: 500;
}
.demo-hint::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(183, 135, 79, 0.16);
}

@media (max-width: 720px) {
  .hero-stage { min-height: 260px; }
  .hero-title { font-size: clamp(1.55rem, 6.5vw, 2rem); }
  .section-title { font-size: clamp(1.3rem, 5.6vw, 1.75rem); max-width: 100%; }
  .lead { max-width: 100%; }
  .demo-visual img { height: 165px; }
  .hero { padding-top: 20px; }
  .hero-meta { margin: 20px 0 24px; }
  .section { padding: 60px 0; }
}

/* ===== 情報設計の改善（2026-07-08：1秒で伝わる／コンテンツを近く） ===== */
/* 日本語見出しは ch だと最大幅が足りず孤立行が出る → em基準に */
.hero-title { line-height: 1.32; }
.section-title { line-height: 1.36; }

/* コンテンツ（実例デモ）までの距離を詰める */
.hero { padding: 26px 0 52px; }
.section { padding: 64px 0; }
.demo-section { padding-top: 52px; }
#problems.section { padding-top: 40px; }

/* Heroの実例ジャンプ導線（ピルをクリックで各デモへ） */
.hero-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 28px; }
.hero-jump__label { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--text-faint); }
a.meta-pill { text-decoration: none; cursor: pointer; }
a.meta-pill:hover { transform: translateY(-1px); border-color: rgba(183, 135, 79, 0.42); box-shadow: 0 8px 20px rgba(15, 33, 56, 0.08); }

@media (max-width: 720px) {
  .hero-jump { gap: 10px; margin: 18px 0 22px; }
  .hero-jump__label { width: 100%; margin-bottom: 2px; }
  .demo-section { padding-top: 40px; }
}

/* ===== 見出し・本文の洗練（2026-07-08：孤立行の解消／行バランス） ===== */
.hero-title, .section-title {
  text-wrap: balance;      /* 行の長さを自動均等化し、末尾1〜2文字の孤立行を防ぐ */
  line-break: strict;      /* 禁則処理を厳格に */
  word-break: keep-all;    /* 語中で改行しない（改行は <wbr> を置いた文節境界のみ） */
  overflow-wrap: break-word; /* 万一の長語はみ出しの保険 */
}
.hero-title { max-width: 16em; }
.section-title { max-width: 19em; }
/* 本文も最終行に単語1つだけ残る"孤立"を防ぐ */
.lead, .section-copy, .demo-copy p, .problem-card p,
.stage-card p, .logic-card p, .usecase-card p { text-wrap: pretty; }

/* CTA見出しの孤立行を解消（2026-07-30）
   .section-title の max-width は上の1004行が唯一の宣言。子孫セレクタでの再指定はしない
   （詳細度で勝ってしまい、後から積む是正が効かなくなるため）。
   紺ボックスが横に広いのに中身が左に寄って見えるので、テキストブロックを中央に置く。 */
.cta-block { text-align: center; }
.cta-block .section-title,
.cta-block .section-copy { margin-left: auto; margin-right: auto; }
.cta-block .cta-actions { justify-content: center; }
.cta-block .footer-note { margin-left: auto; margin-right: auto; max-width: 60em; }

/* デモ見出しは1カラムに（タイトル→短い説明の縦積み。2カラムのズレを解消） */
.demo-head { grid-template-columns: 1fr; gap: 10px; }
.demo-head .section-title { margin-bottom: 0; }
.demo-head .section-copy { max-width: 62ch; margin-top: 4px; }

/* ===== デモを短く・直感的に（2026-07-08：文字量削減・1カラム化・高さ圧縮） ===== */
.demo-section { padding-top: 44px; }
.demo-head { margin-bottom: 18px; align-items: start; }
.demo-visual { max-width: 540px; margin: 0 auto 20px; }
.demo-visual img { height: clamp(130px, 14vw, 176px); }

/* 説明の左カラムを畳み、操作デモを主役に。冗長な説明段落は隠しタグだけ残す */
.demo-layout { grid-template-columns: 1fr; gap: 16px; }
.demo-copy { position: static; }
.demo-copy p { display: none; }
.demo-copy .tag-row { margin-top: 0; }

/* フロー＝短いラベルの流れ（説明文なし・2列コンパクト） */
.flow-steps { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.flow-step { padding: 12px 12px 12px 42px; font-size: 0.92rem; color: var(--text); }
.flow-step span { line-height: 1.4; }
.flow-step::before { top: 50%; transform: translateY(-50%); left: 12px; width: 22px; height: 22px; font-size: 0.78rem; }
.detail-panel { align-self: start; }

/* 比較カード・クイズの高さを詰める */
.compare-card { min-height: 0; padding: 16px; }
.compare-card strong { font-size: 0.95rem; }
.bullets { gap: 8px; margin-top: 10px; }
.bullet { font-size: 0.92rem; }
.bullet .dot { width: 8px; height: 8px; margin-top: 7px; }
.quiz-body { gap: 10px; margin-top: 12px; }
.choice-btn { padding: 12px 14px; font-size: 0.95rem; }

/* 検索結果は2列・カードを低く（縦長の主因を圧縮） */
.results-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.results-card { padding: 14px; }
.results-card .highlight-note { margin-top: 10px; padding: 10px 12px; font-size: 0.85rem; }
.results-card .status-row strong { font-size: 0.95rem; }

@media (max-width: 720px) {
  .flow-steps { grid-template-columns: 1fr; }
  .comparison-wrap { gap: 12px; }
  .results-grid { grid-template-columns: 1fr; }
}

/* ===== デモ主役＝日本語ラベル入りBefore→After図解（2026-07-09）。全体をくっきり大きく ===== */
.demo-visual {
  max-width: min(1000px, 100%);
  margin: 0 auto 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px;
}
.demo-visual img {
  height: auto !important;          /* clamp切り抜きを解除し全体表示 */
  aspect-ratio: 1500 / 844;
  object-fit: contain;
  border-radius: 14px;
}
.demo-visual__zoom { display: block; position: relative; cursor: zoom-in; }

/* 操作デモは折りたたみ（図解を主役に、開いた人だけ操作） */
.demo-try { margin-top: 8px; }
.demo-try > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-weight: 600; font-size: 0.95rem; color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.demo-try > summary::-webkit-details-marker { display: none; }
.demo-try > summary::before { content: "▶"; color: var(--accent); font-size: 0.72em; }
.demo-try > summary::after { content: "操作デモ"; color: var(--text-faint); font-weight: 400; font-size: 0.85rem; }
.demo-try > summary:hover { border-color: var(--accent); background: var(--accent-soft); }
.demo-try[open] > summary { margin-bottom: 16px; }
.demo-try[open] > summary::before { content: "▼"; }
.demo-try .demo-stage { margin-top: 0; }

/* モバイルは図解の文字が小さいので「タップで拡大」を明示 */
@media (max-width: 720px) {
  .demo-visual__zoom::after {
    content: "タップで拡大";
    position: absolute; right: 10px; bottom: 10px;
    background: rgba(15, 33, 56, 0.82); color: #fff; font-size: 11px;
    padding: 5px 11px; border-radius: 999px; pointer-events: none;
  }
}

/* ===== 作り手ブロック（2026-07-30 新設：デモ→誰が作ったか→CTA の順にする） ===== */
.profile-block {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.profile-block__photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}
.profile-block .section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 10px 0 14px; }
.profile-block .section-copy { margin: 0; }
.profile-block .footer-note { margin-top: 16px; }
/* 本文中のリンクは下線で明示（色だけの区別に頼らない） */
.profile-block .footer-note a,
.logic-grid + .footer-note a,
.usecase-card p a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }

/* ===== モバイル余白の是正（2026-07-30） =====
   979〜981行あたりの無条件ルール（.hero / .section / .demo-section の padding）が
   @media(max-width:720px) より後ろにあり、同じ詳細度のためソース順で常に勝っていた。
   結果、スマホでも意図した値が一切効いていなかった。ここで最後に上書きして意図を回復する。 */
@media (max-width: 720px) {
  .hero { padding: 20px 0 40px; }
  .section { padding: 60px 0; }
  .demo-section { padding-top: 40px; }
  #problems.section { padding-top: 32px; }

  .profile-block { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; text-align: center; }
  .profile-block__photo { margin: 0 auto; width: 96px; height: 96px; }
}

/* ===== 「作れるもの」カード（2026-07-30） =====
   業務向け／個人向けをラベルで明示し、各カードに「社内版ならどう流用できるか」を1行添える。
   個人向けのツールがB2B文脈から浮かないようにするための枠組み。 */
#tools .usecase-card { display: flex; flex-direction: column; }
.tool-kind {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  background: var(--cool-soft);
  border: 1px solid var(--line);
}
.tool-transfer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--text-faint);
  font-size: 0.9rem;
  line-height: 1.7;
}
#tools .footer-note { margin-top: 24px; }

/* ===== カードのクリック可能性を示す（2026-07-30・designer指摘 #6/#9） =====
   これまでカードはタイトル文字だけがリンクで、hoverの手がかりも下線も無く、
   「押せる」と分かる視覚的な情報がゼロだった。全面リンク＋hover＋下線で解消する。 */
#tools .usecase-card { position: relative; transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
#tools .usecase-card:hover { box-shadow: 0 1px 2px rgba(15, 33, 56, 0.04), 0 6px 18px rgba(15, 33, 56, 0.08), 0 0 0 1px rgba(183, 135, 79, 0.30); border-color: rgba(183, 135, 79, 0.35); transform: translateY(-2px); }

/* 全面リンク（実体は下の h3 リンクと同じ遷移先。読み上げ・タブ移動は h3 側を使う） */
.card-cover-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
/* 前面に出すのは「リンクそのもの」だけ。ここで h3 や p ごと前面に出すと、
   本文の上をクリックしてもカバーに届かず、全面リンクが効かなくなる（2026-07-30に実測で検出）。 */
#tools .usecase-card h3 a,
#tools .usecase-card p a { position: relative; z-index: 2; }

#tools .usecase-card h3 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
}
#tools .usecase-card:hover h3 a,
#tools .usecase-card h3 a:hover { text-decoration-color: var(--accent); }
/* キーボード操作時にどのカードにいるか分かるようにする */
#tools .usecase-card h3 a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
