:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --ink: #17242d;
  --muted: #6d7c87;
  --line: #dbe5ea;
  --primary: #1fb7b0;
  --primary-dark: #168c87;
  --accent: #8bc34a;
  --cream: #f7fafc;
  --paper: var(--surface);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 22px 60px rgba(45, 72, 86, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(31,183,176,.10), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(139,195,74,.08), transparent 28%),
    linear-gradient(180deg, #fbfdfe 0%, var(--bg) 100%);
  font-family: YakuHanJP, Inter, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

.app-header,
.app-footer,
main,
.breadcrumb,
.usage-notice {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.app-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #53d8d1);
  font-size: 11px;
  letter-spacing: .12em;
}

.header-meta {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
}

.breadcrumb {
  min-height: 46px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumb a,
.app-footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.view[hidden] { display: none !important; }

.intro-view {
  min-height: calc(100vh - 124px);
  padding: 72px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.intro-copy h1,
.intro-copy h1 span {
  margin: 0;
  font-size: clamp(52px, 6.2vw, 86px);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 800;
}

.intro-copy h1 span {
  color: var(--primary);
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.intro-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.intro-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #39cfc7);
  box-shadow: 0 12px 32px rgba(31,183,176,.22);
}

.button-secondary {
  width: fit-content;
  color: var(--primary-dark);
  background: #e8f8f7;
}

.benefit-row {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.benefit-row div,
.progress-box,
.seminar-board,
.result-card,
.ai-note,
.prompt-section,
.result-cta,
.privacy-notice,
.recommendation-card,
.related-app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}

.benefit-row div {
  padding: 16px;
}

.benefit-row strong {
  display: block;
  color: var(--primary-dark);
  font-size: 12px;
}

.benefit-row span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
}

.seminar-board {
  padding: 28px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 12% 8%, rgba(31,183,176,.10), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(139,195,74,.10), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,250,252,.94));
}

.visual-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.flow-line {
  display: grid;
  gap: 14px;
}

.flow-line div {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  background: #fff;
}

.flow-line span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.time-card {
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #275560);
}

.time-card span {
  display: block;
  margin-bottom: 8px;
  color: #53d8d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.form-view,
.result-view {
  padding: 52px 0 74px;
}

.form-header,
.section-heading,
.result-hero {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.form-header h2,
.section-heading h2,
.result-hero h2,
.result-card h2,
.ai-note h2,
.prompt-section h2,
.result-cta h2,
.email-result-copy h2,
.related-apps-section h2,
.next-step-section h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.04em;
}

.form-header h2,
.result-hero h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
}

.form-header p,
.section-heading p,
.result-hero p,
.prompt-section p,
.result-cta p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.progress-box {
  min-width: 116px;
  padding: 18px;
  text-align: center;
}

.progress-box span {
  display: block;
  color: var(--primary-dark);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.progress-box small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.privacy-notice {
  margin-bottom: 22px;
  padding: 18px 20px;
  background: var(--bg);
  box-shadow: none;
}

.privacy-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.privacy-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.seminar-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}

.seminar-form label {
  display: grid;
  gap: 9px;
}

.seminar-form label:nth-child(3),
.seminar-form label:nth-child(4),
.seminar-form button {
  grid-column: 1 / -1;
}

.seminar-form label > span {
  font-size: 14px;
  font-weight: 800;
}

.seminar-form input,
.seminar-form textarea,
.seminar-form select,
.prompt-section textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.seminar-form input,
.seminar-form select {
  min-height: 52px;
  padding: 0 14px;
}

.seminar-form textarea {
  min-height: 104px;
  resize: vertical;
  padding: 14px;
  line-height: 1.7;
}

.seminar-form input::placeholder,
.seminar-form textarea::placeholder {
  color: #9aa8ae;
}

.seminar-form input:focus,
.seminar-form textarea:focus,
.seminar-form select:focus,
.prompt-section textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(31,183,176,.12);
}

.result-view {
  display: grid;
  gap: 22px;
}

.result-card,
.ai-note,
.prompt-section,
.result-cta {
  padding: 26px;
}

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

.axis-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.axis-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--cream);
}

.axis-list dt {
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
}

.axis-list dd {
  margin: 7px 0 0;
  line-height: 1.7;
}

.result-list,
.timeline-list,
.time-list,
.check-list,
.ai-note ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.result-list,
.timeline-list,
.time-list,
.check-list {
  display: grid;
  gap: 12px;
}

.result-list li,
.timeline-list li,
.time-list li,
.check-list li,
.ai-note li {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cream);
  line-height: 1.75;
}

.result-list strong,
.timeline-list strong,
.time-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 12px;
  letter-spacing: .08em;
}

.time-total {
  margin: 16px 0 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.result-text {
  margin: 16px 0 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--cream);
  line-height: 1.8;
}

.ai-note {
  background: #fbfdf7;
}

.ai-note ul {
  display: grid;
  gap: 8px;
}

.ai-note li {
  background: rgba(255,255,255,.72);
}

.prompt-section {
  display: grid;
  gap: 16px;
}

.prompt-section textarea {
  min-height: 360px;
  padding: 18px;
  line-height: 1.75;
  resize: vertical;
}

.copy-status {
  min-height: 1.7em;
  margin: 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.next-step-section,
.related-apps-section {
  margin-top: 8px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.recommendation-card,
.related-app-card {
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.recommendation-card:hover,
.related-app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31,183,176,.46);
  box-shadow: 0 22px 52px rgba(45,72,86,.12);
}

.recommendation-type,
.related-app-card span {
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.recommendation-card h3,
.related-app-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.45;
}

.recommendation-card p,
.related-app-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.recommendation-arrow,
.related-app-card b {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.related-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.result-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--ink), #24515b);
  color: #fff;
}

.result-cta .eyebrow,
.result-cta p {
  color: rgba(255,255,255,.72);
}

.cta-link {
  display: inline-flex;
  margin-top: 18px;
  color: #fff;
  font-weight: 800;
  text-underline-offset: 4px;
}

.usage-notice {
  margin: 20px auto;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfdfe;
}

.usage-notice h2 {
  margin: 0 0 8px;
  color: #17242a;
  font-size: 16px;
  font-weight: 800;
}

.usage-notice p {
  margin: 0;
  color: #66777e;
  font-size: 12px;
  line-height: 1.8;
}

.app-footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .14em;
}

.footer-separator { margin: 0 8px; }

:focus-visible {
  outline: 3px solid rgba(19, 167, 160, .35);
  outline-offset: 3px;
}

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

@media (max-width: 900px) {
  .intro-view,
  .result-grid,
  .related-app-grid,
  .seminar-form,
  .axis-list {
    grid-template-columns: 1fr;
  }

  .seminar-form label:nth-child(3),
  .seminar-form label:nth-child(4),
  .seminar-form button {
    grid-column: auto;
  }

  .intro-visual { order: -1; }
  .seminar-board { min-height: auto; }
}

@media (max-width: 760px) {
  .app-header,
  .app-footer,
  main,
  .breadcrumb,
  .usage-notice {
    width: min(100% - 24px, 1220px);
  }

  .header-meta { display: none; }

  .intro-view {
    min-height: auto;
    padding: 52px 0 72px;
  }

  .intro-copy h1,
  .intro-copy h1 span {
    font-size: 48px;
  }

  .lead { font-size: 15px; }

  .benefit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-header,
  .section-heading,
  .result-hero {
    display: block;
  }

  .progress-box {
    width: 100%;
    margin-top: 16px;
  }

  .seminar-form,
  .result-card,
  .ai-note,
  .prompt-section,
  .result-cta {
    padding: 18px;
  }

  .prompt-section textarea {
    min-height: 420px;
  }

  .app-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .intro-copy h1,
  .intro-copy h1 span {
    font-size: 42px;
  }

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

  .button {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .flow-line div {
    align-items: flex-start;
  }
}
