/* ============================================================
   MARS GROUP — Common CSS
   Design: Luxury Night / Editorial Dark
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@300;400;500;700&family=Cormorant+Garamond:ital,wght@0,300;0,600;1,300&display=swap');

/* --- CSS Variables --- */
:root {
  /* Brand Colors */
  --mars-50:  #fff1f0;
  --mars-100: #ffe0dd;
  --mars-200: #ffc5bf;
  --mars-400: #ff6b5b;
  --mars-500: #e84c3a;
  --mars-600: #c73525;
  --mars-700: #a02318;
  --mars-800: #7d180f;
  --mars-900: #5a100a;

  /* Ink Colors */
  --ink-50:  #f7f7f5;
  --ink-100: #efede9;
  --ink-200: #dedad3;
  --ink-400: #a09d96;
  --ink-600: #6b6762;
  --ink-800: #3a3835;
  --ink-900: #1e1d1b;

  /* Site Theme */
  --bg:         #0d0c0b;
  --bg-surface: #161514;
  --bg-card:    #1e1d1b;
  --bg-hover:   #252321;

  --text-primary:   #f0ede8;
  --text-secondary: #a09d96;
  --text-muted:     #6b6762;

  --accent:       var(--mars-500);
  --accent-light: var(--mars-400);
  --accent-dark:  var(--mars-700);

  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'Cormorant Garamond', serif;
  --font-body:    'Noto Sans JP', sans-serif;

  /* Spacing */
  --container: 1200px;
  --section-gap: 120px;

  /* Effects */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.8);
  --glow:       0 0 40px rgba(232,76,58,0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* --- Typography Utilities --- */
.text-display {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.text-serif {
  font-family: var(--font-serif);
}

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

/* --- Section Label --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 8px 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.btn-ghost::after {
  content: ' →';
}

.btn-ghost:hover {
  color: var(--accent-light);
}

/* --- Card --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  border-radius: 2px;
  font-weight: 500;
}

.badge-accent {
  background: rgba(232, 76, 58, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(232, 76, 58, 0.3);
}

.badge-muted {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --- Form Elements --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.form-label .required {
  color: var(--accent);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,76,58,0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6762' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- Noise Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

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

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fadeInUp  { animation: fadeInUp  0.7s ease both; }
.anim-fadeIn    { animation: fadeIn    0.7s ease both; }
.anim-delay-1   { animation-delay: 0.1s; }
.anim-delay-2   { animation-delay: 0.2s; }
.anim-delay-3   { animation-delay: 0.3s; }
.anim-delay-4   { animation-delay: 0.4s; }
.anim-delay-5   { animation-delay: 0.5s; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Page Transition --- */
.page-enter {
  animation: fadeIn 0.5s ease both;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink-800); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-600); }

/* --- Selection --- */
::selection {
  background: rgba(232, 76, 58, 0.3);
  color: var(--text-primary);
}
