/* ===================================================================
   freshstreet-digital - Base CSS (Theme Tokens)
   将来テンプレート切替時、ここの :root 値だけ変更すれば全体が変わる
   =================================================================== */

:root {
  /* === COLOR TOKENS === */
  --color-bg-base: #14110D;          /* 最深背景 */
  --color-bg-surface: #1F1A14;       /* セクション背景 */
  --color-bg-elevated: #2A2218;      /* カード背景 */
  --color-bg-hover: #3A2E1F;         /* ホバー時 */

  --color-text-primary: #FAFAFA;
  --color-text-secondary: #D4C9B8;
  --color-text-tertiary: #8B7E6A;
  --color-text-muted: #6B6155;

  --color-accent-primary: #E89B3B;    /* 暖かいオレンジ(カレー色) */
  --color-accent-secondary: #FCD34D;  /* 黄色(既存ブランド継承) */
  --color-accent-warm: #DC6B2F;       /* 深いオレンジ */
  --color-accent-cool: #3DA38C;       /* 緑系アクセント */

  --color-divider: rgba(212, 201, 184, 0.12);
  --color-overlay-dark: rgba(20, 17, 13, 0.85);
  --color-overlay-light: rgba(250, 250, 250, 0.05);

  /* === TYPOGRAPHY TOKENS === */
  --font-display: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --font-body: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-number: 'Bebas Neue', 'Impact', sans-serif;

  --fs-hero: clamp(2rem, 4.5vw, 3.5rem);
  --fs-hero-accent: clamp(2.2rem, 5vw, 4rem);
  --fs-h1: clamp(1.75rem, 4vw, 2.75rem);
  --fs-h2: clamp(1.4rem, 3vw, 2.1rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.05rem);
  --fs-small: clamp(0.85rem, 1vw, 0.95rem);
  --fs-micro: 0.75rem;

  /* === LAYOUT TOKENS === */
  --radius-card: 16px;
  --radius-button: 12px;
  --radius-small: 8px;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --container-max: 1400px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* === ANIMATION TOKENS === */
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === SHADOW TOKENS === */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow-accent: 0 0 32px rgba(232, 155, 59, 0.3);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

::selection {
  background: var(--color-accent-primary);
  color: var(--color-bg-base);
}

/* ===== Common Layout Utilities ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-tight {
  padding: var(--space-xl) 0;
}

.gradient-overlay {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-bg-base) 100%
  );
}

/* ===== Typography ===== */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-number { font-family: var(--font-number); }

.text-hero {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.text-h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
}

.text-h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

.text-muted { color: var(--color-text-tertiary); }
.text-accent { color: var(--color-accent-primary); }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-fadeInUp { animation: fadeInUp var(--duration-slow) var(--ease-out) both; }
.animate-fadeIn { animation: fadeIn var(--duration-normal) var(--ease-out) both; }
.animate-scaleIn { animation: scaleIn var(--duration-normal) var(--ease-bounce) both; }

/* ===== Scroll Reveal (basic intersection observer ready) ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Print Styles ===== */
@media print {
  body {
    background: white;
    color: black;
  }
  .no-print { display: none !important; }
}
