/* Critical CSS - Above the Fold Styles */
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Noto+Serif+JP:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

/* CSS Variables - Essential */
:root {
  --primary-color: #000000;
  --primary-dark: #1a1a1a;
  --secondary-color: #f5f5f5;
  --accent-color: #d4af37;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-dark: #000000;
  --border-color: #e5e5e5;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --main-color: var(--primary-color);
}

/* Critical Reset - Essential only */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Serif JP", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Critical Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99999;
  transition: all 0.3s ease;
}

header h1 img {
  display: flex;
  margin-left: 2vw;
  transition: transform 0.3s ease;
  height: 40px;
  width: auto;
}

header h1 img:hover {
  transform: scale(1.02);
}

/* Critical Hamburger Menu - Basic structure only */
.hamburger-nav {
  position: relative;
  width: 40px;
  height: 40px;
}

.menu-toggler {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}

.menu-toggler + label {
  width: 30px;
  height: 2px;
  display: block;
  z-index: 1;
  border-radius: 1px;
  background: var(--text-primary);
  transition: transform 0.5s, top 0.5s;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
}

.menu-toggler + label:before,
.menu-toggler + label:after {
  width: 30px;
  height: 2px;
  display: block;
  border-radius: 1px;
  background: var(--text-primary);
  transition: transform 0.5s, top 0.5s;
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggler + label:before {
  top: 8px;
}

.menu-toggler + label:after {
  top: -8px;
}

/* Critical Hero Section */
.hero-section {
  padding: 120px 2rem 80px;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.hero-text-container {
  margin-bottom: 5rem;
  opacity: 1;
  transform: none;
}

.hero-title {
  font-family: "Playfair Display", "Noto Serif JP", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
  opacity: 1;
  transform: none;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
  opacity: 1;
  transform: none;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Critical Category Grid - First row only */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.category-card {
  position: relative;
  background: var(--bg-primary);
  border-radius: 0;
  padding: 3rem 2rem;
  box-shadow: none;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
  opacity: 1;
  transform: none;
  overflow: hidden;
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
  background: var(--bg-secondary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
}

.card-title {
  font-family: "Playfair Display", "Noto Serif JP", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.card-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Critical Scroll Indicator */
.scroll {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  position: relative;
  font-size: 16px;
  writing-mode: vertical-rl;
}

.scroll-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.hero-title {
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Critical Selection Styles */
::selection {
  background: var(--accent-color);
  color: white;
}

::-moz-selection {
  background: var(--accent-color);
  color: white;
}
