:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --surface-blue: #eaf4ff;
  --surface-green: #eef8f1;
  --text: #17212b;
  --muted: #637385;
  --line: #d9e2ec;
  --line-soft: #edf1f6;
  --accent: #0a7cff;
  --accent-dark: #075fc4;
  --accent-soft: #dfeeff;
  --green: #1d8b57;
  --danger: #b42318;
  --shadow: 0 18px 42px rgba(24, 36, 52, 0.1);
  --shadow-soft: 0 8px 24px rgba(24, 36, 52, 0.07);
}

* {
  box-sizing: border-box;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 360px),
    linear-gradient(90deg, rgba(10, 124, 255, 0.08), rgba(29, 139, 87, 0.06));
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.header-inner,
.main,
.footer-inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  font-weight: 700;
  color: var(--text);
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 14px;
}

.main {
  padding: 40px 0 72px;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  min-width: 0;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.app-badge img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.app-badge strong,
.app-badge span {
  display: block;
  line-height: 1.35;
}

.app-badge span {
  color: var(--muted);
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 640px;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.9), rgba(238, 248, 241, 0.9));
  border: 1px solid var(--line-soft);
}

.document-preview {
  width: min(320px, 86%);
  aspect-ratio: 0.72;
  padding: 22px;
  background: #fff;
  border: 1px solid #d2dbe5;
  box-shadow: 0 20px 44px rgba(24, 36, 52, 0.18);
}

.preview-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}

.preview-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a8b4c1;
}

.preview-title {
  width: 58%;
  height: 18px;
  margin-bottom: 18px;
  border-radius: 5px;
  background: var(--accent);
}

.preview-line {
  width: 76%;
  height: 8px;
  margin-top: 14px;
  border-radius: 99px;
  background: #cbd6e2;
}

.preview-line.wide {
  width: 100%;
}

.preview-line.short {
  width: 48%;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.preview-block {
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-block.text {
  background:
    linear-gradient(#96a3b2 0 0) 14px 18px / 62% 8px no-repeat,
    linear-gradient(#cbd6e2 0 0) 14px 40px / 74% 7px no-repeat,
    linear-gradient(#cbd6e2 0 0) 14px 58px / 52% 7px no-repeat,
    #fffbe1;
}

.preview-block.image {
  background:
    linear-gradient(135deg, #bce1ff, #d8f3df);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.card,
.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: var(--accent);
}

.card h2,
.card h3,
.section h2,
.section h3 {
  margin: 0 0 10px;
  line-height: 1.35;
  letter-spacing: 0;
}

.card p,
.section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.section {
  margin-top: 24px;
  padding: 28px;
}

.section:first-child {
  margin-top: 0;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.toc a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
  border: 1px solid transparent;
}

.toc a:hover {
  border-color: var(--line);
  background: #fff;
  text-decoration: none;
}

ul,
ol {
  margin: 10px 0 0;
  padding-left: 1.4em;
}

li + li {
  margin-top: 6px;
}

.notice {
  padding: 14px 16px;
  background: #fff8e6;
  border: 1px solid #f2d184;
  border-radius: 8px;
  color: #654a05;
}

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

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

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

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

.help-text {
  color: var(--muted);
  font-size: 13px;
}

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

.success {
  color: #067647;
  font-weight: 700;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 1;
}

.footer-inner {
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

  .main {
    padding-top: 24px;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero,
  .section,
  .card {
    padding: 22px;
    border-radius: 8px;
  }

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