/* ==========================================================================
   base.css — リセット、CSS変数、タイポグラフィ基礎
   ========================================================================== */

/* Modern CSS Reset (Josh Comeau 参考・簡約版) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ==========================================================================
   CSS 変数
   ========================================================================== */
:root {
  /* カラー（会社統一） */
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ece5;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-border: #d8d2c6;
  --color-accent: #8b2c1f;          /* 深い赤（会社テーマカラー、和の信頼感） */
  --color-accent-hover: #6e2118;
  --color-link: #2d5a7a;
  --color-white: #ffffff;

  /* 店舗別アクセント（店舗ページで上書き使用） */
  --color-moo: #5b3a1e;              /* 上品な茶・焼肉の落ち着き */
  --color-mth: #b8411f;              /* 活気のある赤・ホルモン酒場 */
  --color-bistro: #2a3d47;           /* 大人のネイビー */
  --color-tori: #7a5a2e;              /* 親しみの琥珀色 */

  /* タイポ */
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* スペーシング */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* コンテナ幅 */
  --container-max: 1200px;
  --container-narrow: 800px;

  /* その他 */
  --radius: 4px;
  --transition: 0.2s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   タイポグラフィ基礎
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
}

h1 { font-family: var(--font-serif); font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: 0.02em; }
h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: 0.02em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.0625rem; }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

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

/* ==========================================================================
   ユーティリティ
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}
@media (max-width: 768px) {
  .section { padding: var(--space-lg) 0; }
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--space-sm) auto 0;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* アクセシビリティ: フォーカス可視化 */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* スクリーンリーダー専用テキスト */
.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;
}
