:root {
  color-scheme: light;
  --ink: #121213;
  --muted: #62666c;
  --line: #e3e7ed;
  --paper: #ffffff;
  --white: #ffffff;
  --blue: #1a4aff;
  --blue-dark: #001965;
  --accent: #2c65c8;
  --steel: #f5f7fa;
  --panel: #f8f8fb;
  --shadow: 0 14px 34px rgba(18, 18, 19, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", Inter, "Yu Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.75;
}

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

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

.text-link {
  color: #003cff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, background-color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--blue-dark);
  background: #edf2ff;
  outline: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 40px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(227, 231, 237, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #262626;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--blue);
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 43%, rgba(255, 255, 255, 0.58) 72%, rgba(255, 255, 255, 0.2) 100%),
    url("tohaku-business-hero.png");
  background-position: center;
  background-size: cover;
  color: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--blue);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
  padding: 116px 0 88px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: 0;
  word-break: keep-all;
  color: var(--ink);
}

.hero-lead {
  max-width: 720px;
  margin-top: 24px;
  color: #262b31;
  font-size: 22px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
}

.button.secondary {
  border-color: #aeb7c4;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.section {
  padding: 86px 0;
}

.section.sage {
  background: var(--steel);
}

.section.rose {
  background: var(--panel);
}

.container {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.label::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--blue);
}

h2 {
  max-width: 760px;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-copy {
  color: var(--muted);
  font-size: 16px;
}

.lead-block {
  max-width: 900px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}

.card p {
  margin-top: 14px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf2ff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.automation-loop {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--steel);
}

.automation-loop > p {
  max-width: 860px;
  margin-top: 14px;
  color: var(--muted);
}

.flow-scroll {
  margin-top: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.flow-visual {
  width: 100%;
}

.automation-loop h3 {
  font-size: 24px;
  line-height: 1.35;
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.loop-step {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.loop-step strong {
  color: var(--blue-dark);
  font-size: 14px;
}

.loop-step span {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.principles {
  display: grid;
  gap: 14px;
}

.principle {
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(18, 18, 19, 0.04);
}

.principle:nth-child(2) {
  border-left-color: #6f7f99;
}

.principle:nth-child(3) {
  border-left-color: var(--blue-dark);
}

.principle strong {
  display: block;
  margin-bottom: 6px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.company-table th {
  width: 220px;
  background: var(--steel);
  color: #30353b;
  font-size: 14px;
}

.business-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.business-list div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.business-list div:last-child {
  border-bottom: 0;
}

.business-list strong {
  display: block;
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 1.6;
}

.business-list span {
  color: #30353b;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 4px;
  background: var(--blue-dark);
  color: var(--white);
}

.contact-band p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #30353b;
  font-size: 14px;
  font-weight: 800;
}

.contact-form label b {
  color: var(--blue);
  font-size: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(26, 74, 255, 0.14);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-note,
.form-status {
  color: var(--muted);
  font-size: 14px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 800;
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.site-footer {
  padding: 28px 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

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

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 14px 22px;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 78svh;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 62%, rgba(255, 255, 255, 0.82) 100%),
      url("tohaku-business-hero.png");
    background-position: 70% center;
  }

  .hero-inner,
  .container {
    width: min(100% - 36px, 720px);
  }

  h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head,
  .split,
  .grid.three,
  .grid.four,
  .grid.two,
  .loop-grid,
  .form-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .lead-block {
    font-size: 20px;
  }

  h2 {
    font-size: 30px;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    border-bottom: 0;
    padding-bottom: 6px;
  }

  .company-table td {
    padding-top: 0;
  }

  .business-list div {
    grid-template-columns: 1fr;
    row-gap: 4px;
    padding: 14px 12px;
  }

  .flow-visual {
    min-width: 780px;
  }

  .footer-inner {
    display: block;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: block;
    min-height: auto;
  }

  .brand {
    margin-bottom: 10px;
  }

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

  .hero-inner {
    padding: 150px 0 70px;
  }

  h1 {
    font-size: 30px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .card,
  .contact-form,
  .contact-band,
  .automation-loop {
    padding: 22px;
  }

  .form-actions {
    display: grid;
  }
}
