/* base.css — 要素セレクタの基本スタイル・タイポグラフィ（DESIGN 6.3。読み込み順: tokens → reset → base → layout → components） */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

/* お弁当一覧では固定の電話予約バーの分も、移動先の見出しを下げる */
body[data-page="bento"] main [id] {
  scroll-margin-top: var(--phone-bar-height);
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

button {
  min-height: 44px;
  color: inherit;
  font: inherit;
}

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

h1,
h2,
h3 {
  color: var(--color-accent-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: var(--space-4);
  font-size: clamp(2rem, 4.5vw, 3rem);
}

h2 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
}

h3 {
  margin-bottom: var(--space-2);
  font-size: 1.2rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 8px 16px;
  transform: translateY(-150%);
  background: var(--color-accent-dark);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

/* <wbr>の位置（語句の区切り）だけで改行し、入りきらない場合だけ任意の位置で折り返す */
.phrase-wrap {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- トップ（P01）: 秋の完成イメージに合わせた構成 ---------- */
.display-heading {
  font-size: clamp(2rem, 1.1rem + 2.8vw, 3rem);
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  html {
      scroll-behavior: auto;
  }
}
