:root {
  --ink: #16221f;
  --muted: #56645f;
  --green: #0b6b56;
  --green-dark: #064d3d;
  --paper: #fbfaf5;
  --wash: #eef4ef;
  --line: #d9ded9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 82px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  line-height: 1.72;
  letter-spacing: 0;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 70px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 245, 0.94);
  backdrop-filter: blur(14px);
}

.logo {
  display: grid;
  grid-template-columns: 28px auto;
  column-gap: 10px;
  align-items: start;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.12;
}

.logo span {
  width: 22px;
  height: 22px;
  border: 7px solid #335f55;
  border-right-color: transparent;
}

.logo small {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
}

.topbar nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #2c3e39;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.nav-cta span {
  font-size: 11px;
}

.hero {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  min-height: 600px;
  border-bottom: 1px solid rgba(217, 222, 217, 0.7);
  background: linear-gradient(90deg, #fffdf8 0%, #fffdf8 43%, #edf4ef 100%);
}

.hero-copy {
  display: grid;
  align-content: center;
  padding: 56px 28px 48px clamp(28px, 5vw, 72px);
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.55;
}

.mainline {
  margin-bottom: 20px;
  color: var(--green);
  font-size: clamp(23px, 2.5vw, 35px);
  font-weight: 900;
  line-height: 1.6;
}

.lead {
  max-width: 510px;
  margin-bottom: 28px;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}

.cta-note,
.micro {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.hero-copy .cta-note,
.hero-copy .micro {
  width: min(410px, 100%);
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(410px, 100%);
  min-height: 58px;
  margin: 8px 0;
  border-radius: 5px;
  background: linear-gradient(135deg, #08735d, #064c3e);
  color: #fff;
  box-shadow: 0 16px 36px rgba(7, 85, 67, 0.22);
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 900;
}

.primary-cta::after {
  content: "→";
  margin-left: 10px;
}

.hero-photo {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 600px;
  overflow: hidden;
}

.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.54), rgba(255, 253, 248, 0.06) 30%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.os-card {
  position: absolute;
  z-index: 2;
  width: 190px;
  padding: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 32px rgba(43, 56, 51, 0.14);
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.os-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.os-card p {
  position: relative;
  margin: 6px 0;
  padding-left: 24px;
  border-left: 3px solid #d7e6df;
}

.os-card p span {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--green);
  border-radius: 2px;
  transform: translateY(-50%);
}

.os-card.left {
  top: 155px;
  left: 38px;
}

.os-card.top {
  top: 104px;
  right: 54px;
}

.os-card.doc {
  right: 42px;
  bottom: 128px;
}

.os-card.doc div {
  height: 72px;
  border: 1px solid #d8ded9;
  background:
    linear-gradient(#d8ded9, #d8ded9) 18px 18px / 90px 4px no-repeat,
    linear-gradient(#e7ebe7, #e7ebe7) 18px 34px / 120px 4px no-repeat,
    linear-gradient(#e7ebe7, #e7ebe7) 18px 50px / 72px 4px no-repeat,
    #fff;
}

.intro,
.process,
.diagnosis,
.faq {
  width: min(812px, calc(100% - 56px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 46px;
  padding: 42px 0 32px;
}

.video-col h2,
.process h2,
.faq h2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.video-col h2::before,
.video-col h2::after,
.process h2 span,
.metrics h2 span {
  content: "";
  display: block;
  height: 1px;
  background: #bfc8c2;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: #dfe8e4;
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(0.98);
}

.video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.04));
}

.video button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 70px;
  height: 70px;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 26px;
}

.video-col > p {
  margin: 8px 0 0;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 12px;
}

.shift-col h2 {
  margin-bottom: 22px;
  font-size: 25px;
  line-height: 1.55;
}

.shift-col h2 span {
  font-size: 19px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.compare article {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.compare h3 {
  margin: 0;
  padding: 12px;
  background: #f0f1ef;
  font-size: 15px;
  text-align: center;
}

.compare h3 small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.compare .green h3 {
  background: var(--green);
  color: #fff;
}

.compare .green h3 small {
  color: rgba(255, 255, 255, 0.78);
}

.person {
  width: 68px;
  height: 68px;
  margin: 22px auto 10px;
  border-radius: 50%;
  background: #2f3835;
}

.team {
  position: relative;
}

.team::before,
.team::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #55645f;
}

.team::before {
  left: -28px;
}

.team::after {
  right: -28px;
}

.compare ul,
.process ul,
.diagnosis-box ul,
.faq-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare li {
  margin: 8px 18px;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.compare li::before,
.diagnosis-box li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 900;
}

.compare article {
  box-shadow: 0 8px 18px rgba(26, 37, 33, 0.05);
}

.triangle {
  color: #7ca69b;
  font-size: 28px;
}

.process {
  padding: 46px 0 36px;
  border-top: 1px solid var(--line);
}

.process h2 {
  grid-template-columns: 1fr auto 1fr;
  font-size: 21px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-grid article {
  position: relative;
  padding: 0 28px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.process-grid article:not(:last-child)::after {
  content: "▶";
  position: absolute;
  top: 118px;
  right: -19px;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.process-grid article:last-child {
  border-right: 0;
}

.process-grid b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #173f36;
  color: #fff;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

.process-grid h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.process-grid h4 {
  margin-bottom: 20px;
  color: var(--green);
  font-size: 16px;
}

.line-icon {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  border: 3px solid #315f55;
  border-radius: 4px;
  opacity: 0.9;
}

.line-icon.document::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -12px;
  width: 34px;
  height: 34px;
  border: 3px solid #315f55;
  border-radius: 50%;
}

.line-icon.chat::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 8px;
  width: 38px;
  height: 26px;
  border: 3px solid #315f55;
  border-radius: 50% 50% 50% 6px;
  background: var(--paper);
}

.line-icon.network::before,
.line-icon.network::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #315f55;
  border-radius: 50%;
  background: var(--paper);
}

.line-icon.network::before {
  left: -18px;
  bottom: 8px;
}

.line-icon.network::after {
  right: -18px;
  bottom: 8px;
}

.line-icon.chat {
  border-radius: 50% 50% 50% 10px;
}

.line-icon.network {
  border-radius: 50%;
  border-style: dashed;
}

.process-grid li {
  margin: 8px 0;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.diagnosis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  padding: 36px 0 42px;
  border-top: 1px solid var(--line);
}

.diagnosis-box {
  padding: 26px 28px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(39, 50, 46, 0.06);
}

.diagnosis-box h2,
.metrics h2 {
  margin-bottom: 22px;
  font-size: 20px;
  text-align: center;
}

.device-row {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 130px;
  margin-bottom: 18px;
}

.laptop {
  width: 196px;
  height: 116px;
  padding: 10px;
  border: 8px solid #1c2623;
  border-bottom-width: 16px;
  border-radius: 5px;
  background: #fff;
}

.laptop div,
.phone div {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 23px, #c7ded5 24px 28px, transparent 29px),
    linear-gradient(90deg, #e7efe9 0 1px, transparent 1px 100%) 0 0 / 18px 18px,
    linear-gradient(#e7efe9 0 1px, transparent 1px 100%) 0 0 / 18px 18px,
    linear-gradient(#2b725f, #2b725f) 18px 20px / 48px 5px no-repeat,
    linear-gradient(#dfe9e4, #dfe9e4) 18px 40px / 110px 6px no-repeat,
    linear-gradient(#dfe9e4, #dfe9e4) 18px 58px / 90px 6px no-repeat,
    #f9fbf9;
}

.phone {
  width: 58px;
  height: 104px;
  margin-left: -18px;
  padding: 7px;
  border: 5px solid #1c2623;
  border-radius: 10px;
  background: #fff;
}

.diagnosis-box li {
  margin: 10px 0;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.diagnosis-box .primary-cta {
  width: 100%;
  margin-top: 14px;
}

.metrics {
  display: grid;
  align-content: center;
}

.metrics h2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.metric-grid article {
  padding: 18px 14px;
  border-left: 1px solid var(--line);
  text-align: center;
}

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

.metric-grid strong {
  display: block;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1.05;
}

.metric-grid small {
  font-size: 24px;
}

.metric-grid span {
  display: block;
  color: var(--green);
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-weight: 900;
}

.metric-grid p,
.metric-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.faq {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.faq h2 {
  display: block;
  font-size: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 34px;
}

.faq article {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 8px;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

.faq article::before {
  content: "Q.";
  color: var(--green);
  font-weight: 900;
}

.faq h3 {
  margin-bottom: 8px;
  font-size: 13px;
}

.faq p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.faq p::before {
  content: "A. ";
  color: var(--ink);
  font-weight: 900;
}

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 470px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 14px 44px;
  background: linear-gradient(90deg, #075240, #0b735a);
  color: #fff;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

.sticky-cta span,
.sticky-cta small {
  font-weight: 900;
  text-align: center;
}

.sticky-cta small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.sticky-cta a {
  display: inline-flex;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 5px;
  background: #fff;
  color: var(--green);
  font-weight: 900;
}

.sticky-cta a::after {
  content: "→";
  margin-left: 14px;
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

  .hero,
  .intro,
  .diagnosis {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero {
    min-height: auto;
  }

  .process-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 96px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .nav-cta {
    padding: 8px 10px;
    font-size: 11px;
  }

  .hero-copy {
    padding: 34px 18px;
  }

  h1 {
    font-size: 33px;
  }

  .mainline {
    font-size: 23px;
  }

  .os-card {
    display: none;
  }

  .intro,
  .process,
  .diagnosis,
  .faq {
    width: calc(100% - 32px);
  }

  .compare,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .triangle {
    transform: rotate(90deg);
    text-align: center;
  }

  .sticky-cta {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 16px;
  }

  .sticky-cta span,
  .sticky-cta small {
    display: none;
  }
}
