:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --text: #1c2733;
  --muted: #5b6b7c;
  --primary: #4943df;
  --primary-dark: #3731b4;
  --accent-bg: #e8f0fc;
  --border: #d5dde8;
  --warn-bg: #fff6e0;
  --warn-border: #e9c46a;
  --radius: 10px;
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181f;
    --bg-alt: #172029;
    --text: #e6edf3;
    --muted: #9fb0c0;
    --primary: #4943df;
    --primary-dark: #3731b4;
    --accent-bg: #1b2a3d;
    --border: #2b3947;
    --warn-bg: #2d2615;
    --warn-border: #7a6420;
  }
}

* { box-sizing: border-box; }

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

a { color: var(--primary); }
@media (prefers-color-scheme: dark) {
  a { color: #a7b7ff; }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand { font-weight: 700; letter-spacing: 0.04em; color: inherit; text-decoration: none; }
header.site .btn { flex-shrink: 0; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--primary-dark); }
.btn.small { padding: 8px 16px; font-size: 0.9rem; }

.hero { padding: 64px 0 32px; background: var(--bg-alt); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin: 0 0 20px; }
.hero h1 { font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.5; letter-spacing: -0.025em; margin: 0 0 24px; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 40em; }
.hero .cta { margin-top: 24px; }
.cta-note { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }
.hero-visual { margin: 0; min-width: 0; }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 16px 48px rgba(28, 39, 80, 0.12); }
.hero-visual figcaption { color: var(--muted); font-size: 0.9rem; text-align: center; margin-top: 12px; }
.service-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; list-style: none; padding: 24px 0 0; margin: 32px 0 0; border-top: 1px solid var(--border); font-weight: 700; }
.service-points li::before { content: '✓'; color: #168778; margin-right: 8px; }
@media (max-width: 800px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(1.7rem, 5.3vw, 2.5rem); }
  .hero-visual { max-width: 640px; justify-self: center; }
  .service-points { justify-content: flex-start; font-size: 0.95rem; }
}
@media (prefers-color-scheme: dark) {
  .eyebrow { color: #a7b7ff; }
}

.mid-cta { text-align: center; margin: 40px 0 0; }
.mid-cta p { margin: 0 0 12px; font-weight: 700; }

section { padding: 48px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: 1.5rem; margin: 0 0 8px; line-height: 1.4; }
h2 + p.sub { color: var(--muted); margin: 0 0 24px; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.problem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.problem-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 6px; margin-bottom: 20px; }
@media (max-width: 1000px) {
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .problem-grid { grid-template-columns: 1fr; }
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 16px 64px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 0.95rem; }
.illustrated-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.illustrated-steps li { display: flex; flex-direction: column; gap: 20px; padding: 24px; min-width: 0; }
.illustrated-steps li::before { content: none; }
.step-copy { min-width: 0; }
.illustrated-steps strong { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; min-height: 32px; line-height: 1.6; }
.illustrated-steps strong::before { content: counter(step); display: flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; }
.step-image { display: block; width: 85%; max-width: 400px; height: auto; align-self: center; border-radius: 8px; }
@media (max-width: 700px) {
  .illustrated-steps { grid-template-columns: 1fr; }
  .illustrated-steps li { padding: 20px; }
}


ul.check { padding-left: 1.2em; }
ul.check li { margin: 4px 0; }
.audience-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.audience-layout > div { min-width: 0; }
.audience-layout ul.check { margin-bottom: 0; }
.audience-image { display: block; width: 100%; max-width: 400px; height: auto; border-radius: 12px; justify-self: center; }
.audience-note { margin: 24px 0 0; }
@media (max-width: 1000px) {
  .audience-layout { grid-template-columns: 1fr; gap: 24px; }
  .audience-image { max-width: 340px; justify-self: center; }
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--bg);
}
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--muted); }

.contact-flow { counter-reset: step; list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.contact-flow li { counter-increment: step; position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.contact-flow li + li::before { content: '▶'; position: absolute; left: -32px; top: 40%; width: 24px; text-align: center; color: var(--primary); font-size: 1.1rem; }
.contact-flow img { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto 16px; border-radius: 12px; }
.contact-flow strong { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; line-height: 1.6; }
.contact-flow strong::before { content: counter(step); display: flex; align-items: center; justify-content: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.9rem; }
.contact-flow span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) {
  .contact-flow { grid-template-columns: 1fr; gap: 32px; }
  .contact-flow li + li::before { content: '▼'; left: 50%; top: -30px; margin-left: -12px; }
  .contact-flow img { max-width: 170px; }
}
.contact-box { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.contact-info { padding: 32px; }
.contact-info h3 { margin: 0 0 8px; font-size: 1.05rem; }
.contact-info ul.check { margin: 0 0 16px; }
.contact-info .cta-note { margin: 0; }
.contact-action { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 32px; background: var(--accent-bg); border-left: 1px solid var(--border); }
.contact-action-lead { margin: 0; font-weight: 700; }
.contact-action .btn { padding: 16px 32px; font-size: 1.05rem; }
.contact-action .cta-note { margin: 0; }
@media (max-width: 800px) {
  .contact-box { grid-template-columns: 1fr; }
  .contact-info, .contact-action { padding: 24px; }
  .contact-action { border-left: 0; border-top: 1px solid var(--border); }
}

footer.site { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 0.9rem; }
footer.site a { color: var(--muted); }

.page { padding: 40px 0; }
.page h1 { font-size: 1.6rem; }
.page h2 { margin-top: 32px; font-size: 1.15rem; }
