:root {
  --color-primary: #0f9b8e;
  --color-primary-dark: #0b7a70;
  --color-primary-soft: rgba(15, 155, 142, 0.1);
  --color-accent: #ff7a59;
  --color-accent-soft: rgba(255, 122, 89, 0.12);
  --color-text: #1f2937;
  --color-text-light: #5b6572;
  --color-bg: #ffffff;
  --color-bg-soft: #f4faf9;
  --color-border: #e3e9e8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow: 0 10px 30px rgba(15, 155, 142, 0.12);
  --shadow-lg: 0 24px 48px -12px rgba(15, 155, 142, 0.22);
  --max-width: 1120px;
  --font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-heading: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.logo .logo-mark {
  width: 34px;
  height: 34px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.header-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-bg-soft) 0%, #ffffff 60%);
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.4;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--color-primary);
}

.hero p.lead {
  font-size: 17px;
  color: var(--color-text-light);
  margin: 0 0 32px;
  max-width: 46ch;
}

.button-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-art {
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

section.soft {
  background: var(--color-bg-soft);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p {
  color: var(--color-text-light);
  margin: 0;
}

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

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

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card .icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary-dark);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 15px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stats .stat strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-primary-dark);
  font-weight: 800;
}

.stats .stat span {
  color: var(--color-text-light);
  font-size: 14px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0b7a70 100%);
  color: #fff;
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}

.cta-band p {
  margin: 0 0 28px;
  opacity: 0.92;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta-band .btn-primary:hover {
  background: #f0fdfb;
}

/* ---------- Monitor campaign banner ---------- */
.monitor-banner {
  background: linear-gradient(135deg, #fff3ee 0%, #ffffff 65%);
  border: 2px solid var(--color-accent);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.monitor-banner-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.monitor-banner h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 14px;
}

.monitor-banner > p {
  color: var(--color-text-light);
  max-width: 56ch;
  margin: 0 auto 32px;
}

.monitor-banner-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.monitor-banner-details > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.monitor-banner-details strong {
  font-size: 20px;
  color: var(--color-text);
  font-weight: 800;
}

.monitor-banner-details span {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ---------- Table (profile) ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  width: 180px;
  color: var(--color-text-light);
  background: var(--color-bg-soft);
  font-weight: 700;
}

/* ---------- Steps (service flow) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-light);
}

/* ---------- Timeline (session example) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.timeline-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
}

.timeline-time {
  display: inline-block;
  background: rgba(15, 155, 142, 0.12);
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.timeline-item p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-light);
}

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info .card {
  margin-bottom: 20px;
}

form.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 22px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-row .required {
  color: var(--color-accent);
  font-size: 12px;
  margin-left: 4px;
  font-weight: 700;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: #fbfdfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 155, 142, 0.15);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: -6px;
  margin-bottom: 24px;
}

.form-status {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 22px;
}

.form-status.success {
  background: #ecfaf6;
  color: var(--color-primary-dark);
  border: 1px solid rgba(15, 155, 142, 0.3);
}

.form-status.error {
  background: #fff2ef;
  color: #c2391b;
  border: 1px solid rgba(255, 122, 89, 0.35);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0e2422;
  color: #cfe4e1;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-grid p {
  color: #9db8b4;
  font-size: 14px;
  max-width: 32ch;
}

.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 16px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: #b8d2ce;
  text-decoration: none;
  font-size: 14px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 13px;
  color: #7fa19c;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 380px;
    margin: 0 auto;
  }

  .grid-3,
  .grid-2,
  .steps,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 24px;
  }

  body.nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .header-cta {
    display: none;
  }

  body.nav-open .header-cta {
    display: inline-block;
    margin-top: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }

  .grid-3,
  .grid-2,
  .steps,
  .timeline,
  .stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
