/* --u は「名刺(91:55)の幅の1%」。全サイズの寸法をこの倍数で決めるので、画面が変わっても比率は同じ */
body {
  --u: min(1vw, 1.65dvh);
  --logo-size: calc(var(--u) * 5);
  margin: 0;
  padding-left: calc(var(--u) * 2.5);
  background: #f4f3ef;
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: calc(var(--u) * 2.5);
  background: #596F34;
}

/* 上下の余白行を同じ高さ(1fr)にして、真ん中の行のロゴを常に画面の上下中央に置く。下2行は3行目にぶら下げる */
main {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  text-align: center;
}

h1 {
  grid-row: 2;
  margin: 0;
  font-size: var(--logo-size);
  font-weight: 700;
  letter-spacing: 0.16em;
  /* letter-spacing は最後の文字の後ろにも付くので、同じ幅を先頭に足して文字だけを中央に揃える */
  text-indent: 0.16em;
}

/* 黄金比 φ=1.618（φ²=2.618）でロゴから決める: 文字 = ロゴ÷φ²、行送り = ロゴと同じ高さ、ロゴとの間 = ロゴ×φ */

address {
  grid-row: 3;
  align-self: start;
  margin-top: calc(var(--logo-size) * 1.618);
  font-style: normal;
  font-size: calc(var(--logo-size) / 2.618);
  letter-spacing: 0.1em;
  line-height: 2.618;
  white-space: nowrap;
}

address p { margin: 0; }

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