:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --ink: #23211f;
  --muted: #6f6a63;
  --line: #e7dfd5;
  --panel: #ffffff;
  --accent: #5d8c74;
  --accent-strong: #35624e;
  --accent-soft: #edf6f0;
  --warm: #d97854;
  --warm-soft: #fff1e9;
  --sun: #d5a544;
  --blue: #6f8fb4;
  --rose: #e49a8f;
  --mint: #a9d7be;
  --shadow: 0 18px 52px rgba(58, 46, 35, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 8px 13px;
  border-radius: 8px;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: clamp(52px, 8vw, 100px) clamp(20px, 6vw, 80px) 44px;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.96) 0%, rgba(255, 250, 244, 0.9) 34%, rgba(255, 250, 244, 0.25) 56%, rgba(255, 250, 244, 0.08) 100%),
    url("./assets/hero-consultation.png") center right / cover no-repeat;
}

.image-hero {
  position: relative;
  isolation: isolate;
}

.image-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(36px, 5.2vw, 66px);
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.45;
}

.lead {
  max-width: 700px;
  margin-bottom: 28px;
  color: #504b45;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(53, 98, 78, 0.18);
}

.button.secondary {
  color: #80523f;
  background: #fff9f3;
  border: 1px solid var(--line);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  padding: 8px 10px;
  color: #6f4737;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 6vw, 80px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 34px;
  align-items: start;
}

.visual-story {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(360px, 0.95fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  background:
    linear-gradient(180deg, #fff8f1, #f5fbf7);
}

.story-copy {
  max-width: 560px;
}

.story-copy p:not(.eyebrow) {
  color: #504b45;
  font-size: 17px;
}

.visual-story img,
.diagnosis-layout img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-story img {
  background: #fff;
}

.image-break {
  min-height: clamp(230px, 34vw, 430px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-block: 1px solid rgba(231, 223, 213, 0.76);
}

.image-break-workflow {
  background-image:
    linear-gradient(90deg, rgba(35, 33, 31, 0.12), rgba(35, 33, 31, 0.02)),
    url("./assets/workflow-simplify.png");
  background-position: center 45%;
}

.image-break-workshop {
  background-image:
    linear-gradient(90deg, rgba(255, 250, 244, 0.16), rgba(255, 250, 244, 0.02)),
    url("./assets/first-task-workshop.png");
  background-position: center 48%;
}

.image-break-consultation {
  background-image:
    linear-gradient(90deg, rgba(35, 33, 31, 0.08), rgba(35, 33, 31, 0)),
    url("./assets/hero-consultation.png");
  background-position: center 42%;
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 0.9fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

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

.body-copy {
  color: #504b45;
  font-size: 17px;
}

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

.check-list li {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-list li::before {
  content: "○";
  margin-right: 8px;
  color: var(--warm);
  font-weight: 800;
}

.card-grid,
.fit-grid,
.theme-list,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card-grid article,
.fit-grid article,
.theme-list article,
.timeline article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(58, 46, 35, 0.05);
}

.card-grid article:nth-child(3n + 1),
.theme-list article:nth-child(3n + 1),
.timeline article:nth-child(3n + 1) {
  border-top: 4px solid var(--warm);
}

.card-grid article:nth-child(3n + 2),
.theme-list article:nth-child(3n + 2),
.timeline article:nth-child(3n + 2) {
  border-top: 4px solid var(--accent);
}

.card-grid article:nth-child(3n),
.theme-list article:nth-child(3n),
.timeline article:nth-child(3n) {
  border-top: 4px solid var(--blue);
}

.card-grid span,
.timeline span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--warm);
  border-radius: 8px;
  font-weight: 800;
}

.themes {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 241, 233, 0.95), transparent 32%),
    linear-gradient(180deg, rgba(237, 246, 240, 0.88), rgba(255, 241, 233, 0.5));
}

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

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

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.8fr);
  gap: 34px;
  background: linear-gradient(135deg, #2e463a, #3b332d);
  color: #fff;
}

.contact .eyebrow {
  color: #f0b08c;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 26px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
}

.contact-card-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

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

.contact-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 700;
}

.contact-card li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--accent-strong);
  font-weight: 900;
}

.contact-button {
  width: 100%;
  text-align: center;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.popup-open {
  overflow: hidden;
}

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.exit-popup.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.exit-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 33, 31, 0.48);
  backdrop-filter: blur(4px);
}

.exit-popup-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.74fr) minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: hidden;
  background: #fffaf4;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(35, 33, 31, 0.26);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.exit-popup.is-visible .exit-popup-dialog {
  transform: translateY(0) scale(1);
}

.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.exit-popup-media {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.08), rgba(46, 70, 58, 0.18)),
    url("./assets/first-task-workshop.png") center / cover no-repeat;
}

.exit-popup-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
}

.exit-popup-copy h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
}

.exit-popup-copy p:not(.eyebrow) {
  margin: 0;
  color: #504b45;
  font-weight: 600;
}

.exit-popup-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exit-popup-points li {
  padding: 7px 10px;
  color: #6f4737;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.exit-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.exit-popup-later {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 80px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero,
  .split,
  .contact,
  .visual-story,
  .diagnosis-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 340px;
    background:
      linear-gradient(180deg, rgba(255, 250, 244, 0.18), rgba(255, 250, 244, 0.92) 32%, #fffaf4 100%),
      url("./assets/hero-consultation.png") top right 28% / auto 390px no-repeat;
  }

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

  .card-grid,
  .fit-grid,
  .theme-list,
  .timeline,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .image-break {
    min-height: 250px;
  }

  .exit-popup-dialog {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .exit-popup-media {
    min-height: 230px;
    background-position: center 42%;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 32px;
  }

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

  .contact-card {
    padding: 16px;
  }

  .image-break {
    min-height: 210px;
  }

  .footer {
    display: grid;
    gap: 8px;
  }

  .exit-popup {
    align-items: end;
    padding: 12px;
  }

  .exit-popup-dialog {
    max-height: calc(100vh - 24px);
  }

  .exit-popup-media {
    min-height: 150px;
  }

  .exit-popup-copy {
    padding: 20px;
  }

  .exit-popup-actions,
  .exit-popup-actions .button {
    width: 100%;
  }
}
