:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #eef6fb;
  --line: #d9e4ed;
  --line-strong: #bfd0dd;
  --text: #172334;
  --muted: #5e6c7b;
  --quiet: #7a8b9a;
  --primary: #123f73;
  --primary-dark: #0c2f58;
  --accent: #0f7c8a;
  --accent-soft: #dff3f5;
  --success: #328466;
  --warning: #b46b24;
  --shadow: 0 16px 40px rgba(23, 35, 52, 0.1);
  --shadow-soft: 0 8px 24px rgba(23, 35, 52, 0.08);
  --radius: 8px;
  --container: 1160px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 228, 237, 0.8);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(100% - 48px, var(--container));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--primary);
}

.brand-logo {
  width: 174px;
  height: 59px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.nav-toggle span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--primary);
  border-radius: 2px;
}

.section,
.hero-section {
  padding: 46px 0;
}

.section-inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.hero-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%);
  padding-top: 34px;
}

.hero-grid {
  min-height: 440px;
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  align-items: center;
  gap: 42px;
}

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

.hero-copy h1,
.section-title,
.decision-copy h2,
.final-cta h2 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.22;
}

.hero-copy h1 {
  font-size: 44px;
}

.hero-lead {
  max-width: 470px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-brand-note {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-form-note {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 700;
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-proof-list span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(18, 63, 115, 0.2);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--primary-dark);
}

.button.secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--line-strong);
}

.button.full {
  width: 100%;
}

.hero-visual {
  min-height: 0;
  position: relative;
  display: block;
}

.hero-sample-sheet {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-sample-list {
  display: grid;
}

.hero-sample-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.hero-sample-list article > span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.hero-sample-list h4 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
}

.hero-sample-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.hero-sample-list p + p {
  margin-top: 6px;
}

.hero-sample-list strong {
  color: var(--text);
}

.hero-sample-footer {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #f6f9fb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero-sample-footer strong {
  color: var(--text);
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.main-summary {
  width: 100%;
  padding: 16px;
  transform: none;
  z-index: 1;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
}

.rank-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px;
  border-radius: 6px;
  background: #f6f9fb;
  color: var(--muted);
  font-size: 12px;
}

.rank-row span,
.rank-badge,
.flow-list span {
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.rank-row span {
  width: 22px;
  height: 22px;
}

.rank-row strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.rank-row em {
  color: var(--quiet);
  font-style: normal;
}

.rank-row.active {
  background: var(--accent-soft);
}

.rank-row.muted {
  opacity: 0.62;
}

.progress-note {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
}

.progress-note strong {
  color: var(--text);
  font-size: 24px;
}

.top-brief {
  padding: 22px;
  min-height: 360px;
  position: relative;
  z-index: 2;
}

.top-brief h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.top-brief article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.top-brief article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.rank-badge {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.top-brief h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.top-brief p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  border-radius: 6px;
  background: #eef4f8;
  color: var(--muted);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.section-title {
  text-align: center;
  font-size: 24px;
}

.problem-section {
  background: #fff;
  padding-top: 42px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.info-card,
.deliverable-card,
.scope-card,
.price-card,
.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(23, 35, 52, 0.04);
}

.info-card {
  min-height: 144px;
  padding: 18px;
}

.card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.info-card h3,
.deliverable-card h3,
.flow-list h3 {
  margin: 16px 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.info-card p,
.deliverable-card p,
.flow-list p,
.decision-copy p,
.scope-card li,
.price-card p,
.final-cta p {
  color: var(--muted);
}

.info-card p,
.deliverable-card p,
.flow-list p {
  margin: 0;
  font-size: 13px;
}

.decision-section {
  background: #fff;
}

.decision-grid {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 30px;
  align-items: start;
}

.decision-copy h2 {
  font-size: 30px;
}

.decision-copy p:last-child {
  margin: 18px 0 0;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.table-row {
  display: grid;
  grid-template-columns: 0.72fr 1.08fr 1fr 1fr;
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-row span {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.table-row span:first-child {
  border-left: 0;
  color: var(--text);
  font-weight: 800;
}

.table-head {
  background: #f1f6fa;
  font-weight: 800;
}

.table-head span:nth-child(2) {
  background: var(--primary);
  color: #fff;
}

.table-row:not(.table-head) span:nth-child(2) {
  background: #f5fbfc;
  color: var(--primary);
  font-weight: 800;
}

.sample-section {
  background: #fff;
}

.sample-heading {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.sample-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
  margin-top: 24px;
}

.sample-card {
  appearance: none;
  width: 100%;
  min-height: 176px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(247, 250, 252, 0.86);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sample-card:hover,
.sample-card:focus-visible {
  border-color: rgba(15, 124, 138, 0.44);
  background: #fff;
  transform: translateY(-1px);
}

.sample-card.is-active {
  border-style: solid;
  border-color: rgba(15, 124, 138, 0.48);
  background: #f5fbfc;
  box-shadow: 0 12px 30px rgba(15, 124, 138, 0.12);
}

.sample-card span {
  display: inline-flex;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--primary);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.sample-card h3 {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
}

.sample-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.sample-output {
  margin: 18px auto 0;
  max-width: 920px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.sample-output-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sample-output-label {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
}

.sample-output-actions {
  display: inline-flex;
  gap: 10px;
}

.sample-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.sample-action:hover,
.sample-action:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
  background: #f7fafc;
}

.sample-sheet {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
}

.sample-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: #f1f6fa;
  border-bottom: 1px solid var(--line);
}

.sample-sheet-head span {
  display: inline-flex;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--primary);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.sample-sheet-head h3,
.sample-sheet-head p,
.sample-sheet-meta p,
.sample-sheet-grid h4,
.sample-sheet-grid p {
  margin: 0;
}

.sample-sheet-head h3 {
  margin-top: 8px;
  font-size: 22px;
}

.sample-sheet-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sample-sheet-meta {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.sample-sheet-meta p {
  overflow-wrap: anywhere;
}

.sample-sheet-meta strong {
  color: var(--text);
}

.sample-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sample-sheet-grid.single-case {
  grid-template-columns: 1fr;
}

.sample-sheet-grid article {
  padding: 18px;
  border-left: 1px solid var(--line);
}

.sample-sheet-grid article:first-child {
  border-left: 0;
}

.sample-sheet-grid.single-case article {
  border-left: 0;
}

.sample-sheet-grid article > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.sample-sheet-grid h4 {
  margin-top: 12px;
  font-size: 18px;
}

.sample-sheet-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.sample-sheet-grid strong {
  color: var(--text);
}

.sample-drop-notes {
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.sample-drop-notes h4 {
  margin: 0;
  font-size: 15px;
}

.sample-drop-notes ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.sample-output-body {
  max-height: 520px;
  overflow: auto;
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfa;
}

.sample-output-body code {
  display: block;
  color: #1f2f2b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Noto Sans Mono CJK JP", monospace;
  font-size: 13px;
  line-height: 1.74;
  white-space: pre-wrap;
}

.sample-output-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.deliverables-section {
  background: #f6fafc;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.deliverable-card {
  min-height: 188px;
  padding: 16px;
}

.deliverable-card h3 {
  margin-top: 0;
}

.mini-doc,
.mini-list,
.mini-brief,
.mini-log,
.mini-feedback {
  height: 72px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fafc;
  padding: 12px;
}

.mini-doc span {
  height: 7px;
  border-radius: 4px;
  background: #cad8e3;
}

.mini-doc span:nth-child(1) {
  width: 58%;
  background: var(--primary);
}

.mini-doc span:nth-child(4) {
  width: 72%;
}

.mini-list {
  height: 120px;
  grid-template-columns: 28px 1fr;
  align-content: start;
  gap: 6px;
  padding: 14px;
}

.mini-list span:nth-child(odd),
.mini-brief b {
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 11px;
}

.mini-list span:nth-child(odd) {
  width: 22px;
  min-height: 18px;
  align-self: center;
}

.mini-list span:nth-child(even),
.mini-brief span {
  min-height: 18px;
  border-radius: 4px;
  background: #cbd9e4;
}

.mini-brief {
  grid-template-columns: 24px 1fr;
}

.mini-log span {
  height: 18px;
  border-radius: 5px;
  background: #f0f4f7;
  color: var(--muted);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
}

.mini-feedback {
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.mini-feedback span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
}

.mini-feedback span:nth-child(n + 4) {
  background: #cbd9e4;
}

.flow-section {
  background: #fff;
}

.flow-list {
  counter-reset: flow;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
}

.flow-list li {
  position: relative;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--line-strong);
}

.flow-list span {
  width: 30px;
  height: 30px;
}

.flow-list h3 {
  margin-top: 14px;
}

.pricing-faq-section {
  background: #f6fafc;
}

.pricing-faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.75fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.scope-card,
.price-card,
.faq-card {
  padding: 22px;
}

.scope-card h2,
.price-card h2,
.faq-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.35;
}

.scope-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.scope-card li {
  position: relative;
  padding-left: 24px;
}

.scope-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

.price-card h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 42px;
  font-variant-numeric: tabular-nums;
}

.price-card h2 span {
  font-size: 14px;
  color: var(--muted);
}

.price-card p {
  margin: 0 0 22px;
}

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

.faq-question {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.faq-question span {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  flex: 0 0 auto;
}

.faq-question[aria-expanded="true"] span {
  transform: rotate(225deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 200ms ease;
}

.faq-answer.open {
  grid-template-rows: 1fr;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.faq-answer.open p {
  padding: 4px 14px 12px;
}

.final-cta {
  padding: 54px 0;
  background: linear-gradient(180deg, #ecf6fb 0%, #dcecf5 100%);
}

.final-cta-inner {
  text-align: center;
}

.final-cta h2 {
  font-size: 32px;
}

.sales-flow-card,
.inquiry-form {
  width: min(100%, 780px);
  margin: 24px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 12px rgba(23, 35, 52, 0.04);
  text-align: left;
}

.sales-flow-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.sales-flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sales-flow-card strong {
  color: var(--text);
}

.inquiry-form {
  padding: 22px;
}

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

.form-grid label,
.form-consent {
  display: grid;
  gap: 8px;
}

.form-wide {
  grid-column: 1 / -1;
}

.form-grid label span,
.form-consent span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
}

.form-grid textarea {
  resize: vertical;
}

.form-consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  margin-top: 16px;
  text-align: left;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.form-status[data-status-tone="success"] {
  color: var(--success);
}

.form-status[data-status-tone="error"] {
  color: #b5493d;
}

.form-policy-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.form-submit {
  width: 100%;
  margin-top: 10px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.mail-fallback {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.mail-fallback a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  text-align: left;
}

.operator-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 12px rgba(23, 35, 52, 0.04);
}

.operator-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
}

.operator-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.operator-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.copy-email-button {
  appearance: none;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  padding: 2px 4px;
  cursor: pointer;
  font: inherit;
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-email-button:hover,
.copy-email-button:focus-visible {
  border-color: var(--line-strong);
  background: #fff;
}

.copy-email-status {
  min-height: 20px;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}

.operator-card a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-question:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible,
.sample-toggle:focus-visible,
.sample-action:focus-visible,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.form-consent input:focus-visible,
.copy-email-button:focus-visible {
  outline: 3px solid rgba(15, 124, 138, 0.28);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .decision-grid,
  .pricing-faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-visual {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  }

  .problem-grid,
  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .deliverables-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sample-sheet-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sample-sheet-grid article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .sample-sheet-grid article:first-child {
    border-top: 0;
  }

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

  .flow-list li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 780px) {
  .nav-shell,
  .section-inner {
    width: min(100% - 32px, var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    min-height: 48px;
    padding: 0 10px;
    border-bottom: 0;
    border-radius: 6px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: var(--surface-soft);
  }

  .section,
  .hero-section {
    padding: 56px 0;
  }

  .hero-section {
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
  }

  .main-summary {
    width: 100%;
    transform: none;
  }

  .top-brief {
    min-height: 0;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row span {
    min-height: 42px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .table-row span:first-child {
    border-top: 0;
    background: #f6f9fb;
  }

  .table-head {
    display: none;
  }

  .table-row span:nth-child(2)::before {
    content: "top3brief：";
  }

  .table-row span:nth-child(3)::before {
    content: "営業DB購入：";
  }

  .table-row span:nth-child(4)::before {
    content: "社内リサーチ：";
  }

  .table-row span:nth-child(n + 2)::before {
    color: var(--muted);
    font-weight: 800;
    margin-right: 4px;
  }

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

  .sample-output {
    padding: 18px;
  }

  .sample-sheet-head {
    display: grid;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 31px;
  }

  .hero-actions,
  .hero-actions .button,
  .inquiry-form .button {
    width: 100%;
  }

  .hero-sample-list article {
    grid-template-columns: 30px 1fr;
    padding: 12px;
  }

  .hero-sample-footer {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
  }

  .problem-grid,
  .deliverables-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .section-title,
  .decision-copy h2 {
    font-size: 24px;
    text-align: left;
  }

  .price-card h2 {
    font-size: 36px;
  }

  .final-cta h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
