/* 立住蕎麦 - 共通ベース（リセット + 3パターン共通の最小ユーティリティ） */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; line-height: 1.9; letter-spacing: .04em; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 縦組み（日本語見出し用） */
.vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-feature-settings: "vkrn", "vpal";
}

/* 横スクロールを起こさない保険 */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* モーション配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* スマホ固定CTA（3パターン共通の改良ポイント：電話と地図を常に1タップで） */
.sp-cta { display: none; }
@media (max-width: 767px) {
  .sp-cta {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset: auto 0 0 0; z-index: 90;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .18);
  }
  /* 高さを固定して、本文の下余白と必ず一致させる（行高を継承すると 68px になり最下部が隠れていた） */
  .sp-cta a {
    display: flex; align-items: center; justify-content: center; gap: .4em;
    height: 3.6rem; line-height: 1.4;
    font-size: .95rem; font-weight: 700; letter-spacing: .08em;
  }
  body { padding-bottom: 3.6rem; }
}
