:root {
  --green: #0f766e;
  --green-dark: #0b5f59;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --orange: #d97706;
  --ink: #13201e;
  --muted: #5f6f6b;
  --paper: #f7faf8;
  --line: #dce8e4;
  --white: #ffffff;
  --danger: #b42318;
  --success: #067647;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(247, 250, 248, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-nav a {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.header-nav a.active {
  color: var(--blue-dark);
}

.hero {
  position: relative;
  min-height: min(720px, 92vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(54px, 9vw, 108px) clamp(20px, 6vw, 80px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 95, 89, 0.98) 0%, rgba(11, 95, 89, 0.88) 52%, rgba(11, 95, 89, 0.42) 100%),
    url("app-icon-512.png") right 8vw center / min(54vw, 560px) no-repeat,
    var(--green);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(247, 250, 248, 0), var(--paper));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #bff3ea;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 8vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.lead {
  max-width: 640px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.blue {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.button.blue:hover {
  background: var(--blue-dark);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.09);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-notes li {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
}

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

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

.section-title {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-title .eyebrow,
.legal-page .eyebrow,
.contact-page .eyebrow {
  color: var(--green);
}

.muted {
  color: var(--muted);
  font-weight: 700;
}

.audience-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.audience-grid article,
.work-grid article,
.contact-card,
.legal-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.audience-grid strong,
.work-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 18px;
}

.route {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.steps article {
  position: relative;
  padding: 22px 20px 20px;
  border-left: 5px solid var(--green);
  background: #f7fbfa;
}

.steps article::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.blue-band {
  color: var(--white);
  background: #1d4ed8;
}

.blue-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blue-band p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.blue-band .button {
  flex: 0 0 auto;
  color: var(--blue-dark);
  background: var(--white);
}

.page-hero {
  padding: clamp(46px, 7vw, 82px) clamp(20px, 6vw, 80px);
  color: var(--white);
  background: linear-gradient(120deg, var(--green-dark), var(--green));
}

.page-hero .section-inner {
  width: min(980px, 100%);
}

.page-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
}

.page-hero .lead {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

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

.notice {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.notice.success {
  color: var(--success);
  border: 1px solid #abefc6;
  background: #ecfdf3;
}

.notice.error {
  color: var(--danger);
  border: 1px solid #fecdca;
  background: #fef3f2;
}

.legal-page,
.contact-page {
  padding: clamp(34px, 6vw, 68px) clamp(20px, 6vw, 80px);
}

.legal-stack {
  display: grid;
  gap: 14px;
}

.legal-card h2 {
  font-size: 24px;
}

.legal-updated {
  color: var(--muted);
  font-weight: 800;
}

.footer {
  padding: 28px clamp(20px, 6vw, 80px);
  color: var(--muted);
  background: #edf5f2;
  font-size: 13px;
}

.footer-inner {
  width: min(1080px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}

.footer a {
  margin-left: 12px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 650px;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(11, 95, 89, 0.46) 0%, rgba(11, 95, 89, 0.96) 58%),
      url("app-icon-512.png") center 44px / min(70vw, 360px) no-repeat,
      var(--green);
  }

  .audience-grid,
  .work-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .blue-band .section-inner,
  .footer-inner {
    display: block;
  }

  .blue-band .button {
    margin-top: 18px;
  }

  .footer a {
    display: inline-block;
    margin: 10px 12px 0 0;
  }
}
