/* 共通ヘッダーと本文レイアウト */
/* Shared header and content layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--site-header-height);
  padding-inline: 24px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  font-weight: bold;
}

.demo-index-link {
  margin-inline-end: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: bold;
  transition:
    background-color 0.2s,
    border-color 0.2s;

  @media (any-hover: hover) {
    &:hover {
      border-color: var(--text);
      background-color: var(--bg);
    }
  }
}

.hero {
  padding: 48px 24px;

  h1 {
    max-width: 720px;
    margin: 8px 0 24px;
    font-size: 4rem;

    @media (width <= 568px) {
      font-size: 3rem;
    }
  }

  a {
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    transition: text-decoration-color 0.2s;

    @media (any-hover: hover) {
      &:hover {
        text-decoration-color: currentColor;
      }
    }
  }
}

.summary {
  max-width: 720px;
  padding-block-end: 48px;
  padding-inline: 24px;

  h2 {
    margin-block: 0 8px;
    font-size: 1.5rem;
  }

  p {
    margin: 0;
  }
}

.scroll-test-space {
  /* スクロール検証用の本文高さ */
  /* Content height for scroll checks */
  min-height: 140vh;
}
