/* =========================================================
   layout.css - 全ページ共通の骨格
   ヘッダー / フッター / コンテナ / ヒーロー
   ========================================================= */

/* ---------- コンテナ ---------- */
.container {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.container--narrow {
  max-width: var(--w-narrow);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--h-header);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: var(--t-md);
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 22px;
  height: 22px;
  color: var(--c-accent);
}

.brand__suffix {
  color: var(--c-muted);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  font-size: var(--t-sm);
  color: var(--c-ink-2);
}

.site-nav a {
  transition: color var(--dur) var(--ease);
}

.site-nav a:hover {
  color: var(--c-ink);
}

/* ---------- ヒーロー ----------
   近未来感は、ごく薄いグリッドを上部だけに敷いて表現します。
   （アニメーションはさせません） */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 112px) clamp(40px, 7vw, 80px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--c-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--c-border) 1px, transparent 1px);
  background-size: 64px 64px;
  /* 下に向かってグリッドを消す */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 72%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative; /* グリッドより前面に */
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  background: var(--c-bg);
  color: var(--c-ink-2);
  font-size: var(--t-xs);
  letter-spacing: .02em;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--c-accent);
}

.hero__title {
  max-width: 18em;
  font-size: clamp(28px, 5.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero__lead {
  max-width: 34em;
  margin-top: var(--s-4);
  color: var(--c-muted);
  font-size: clamp(var(--t-base), 2.2vw, var(--t-md));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* ---------- セクション ---------- */
.section {
  padding-block: var(--s-8);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-border);
}

.section__title {
  font-size: var(--t-lg);
  letter-spacing: -0.02em;
}

.section__note {
  color: var(--c-muted);
  font-size: var(--t-sm);
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: var(--s-8);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-6);
  color: var(--c-muted);
  font-size: var(--t-sm);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}

.site-footer__links a:hover {
  color: var(--c-ink);
}
