/* ========================================
   Base Styles - ベーススタイル
   ======================================== */

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   CSS Variables - Figma Design Tokens
   ======================================== */
:root {
  /* カラー変数（Figma変数から取得） */
  --color-black-text: #232323;
  --color-white: #FFFFFF;
  --color-gray-beige: #B2A28E;
  --color-red: #9C0505;
  --color-cream-bg: #F9F8F6;
  --color-dark-brown: #332822;
  --color-background-primary: #F5F5F5;
  --color-font-primary: #000000;
  
  /* タイポグラフィ変数 */
  --font-family-base: 'Noto Sans JP', sans-serif;
  --font-family-serif: 'Shippori Mincho B1', serif;
  --font-family-sans: 'Open Sans', sans-serif;
  --font-family-eb-garamond: 'EB Garamond', serif;
  
  --font-size-base: 16px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --line-height-base: 1.8;
  --line-height-normal: normal;
  
  /* スペーシング変数 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 72px;
  --spacing-4xl: 96px;
  --spacing-5xl: 128px;
  
  /* ブレークポイント */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1920px;
  
  /* その他 */
  --border-radius-sm: 4px;
  --border-radius-full: 50px;
  --shadow-sm: 0px 5px 30px 0px rgba(51, 40, 34, 0.05);
  --shadow-md: 0px 0px 15px 0px rgba(51, 40, 34, 0.1);
}

/* ========================================
   Base Typography
   ======================================== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  color: var(--color-black-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography Elements
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--color-black-text);
}

p {
  margin-bottom: 1em;
  line-height: var(--line-height-base);
}

a {
  color: var(--color-black-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
}

