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

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans',
    'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e2a24;
}

body {
  background: linear-gradient(135deg, #f7f1e8 0%, #f4e8d8 50%, #f7f1e8 100%);
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 16px;
}

h2 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 12px;
}

h3 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 10px;
}

p {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: #5c675f;
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header {
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 205, 189, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1e2a24;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e2a24;
  color: white;
  font-weight: 800;
  font-size: 24px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch a {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.lang-switch a.active {
  background: #1e2a24;
  color: white;
}

.lang-switch a:not(.active) {
  background: rgba(255, 255, 255, 0.72);
  color: #5c675f;
  border: 1px solid #d8cdbd;
}

.lang-switch a:not(.active):hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Hero */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-eyebrow {
  color: #f26a4b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-body {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Section */
.section {
  padding: 40px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #1e2a24;
}

/* Card */
.card {
  background: rgba(255, 249, 240, 0.96);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(216, 205, 189, 0.9);
  box-shadow: 0 8px 16px rgba(37, 27, 16, 0.12);
  margin-bottom: 20px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  border: 1px solid rgba(216, 205, 189, 0.7);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 166, 108, 0.15);
  color: #7aa66c;
  font-size: 28px;
  font-weight: 800;
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #1e2a24;
}

.feature-desc {
  font-size: 14px;
  color: #5c675f;
  line-height: 1.6;
}

/* Categories */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.category {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d8cdbd;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.category:hover {
  background: #1e2a24;
  border-color: #1e2a24;
  color: white;
}

/* Button */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: #1e2a24;
  color: white;
}

.btn-primary:hover {
  background: #5c675f;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #1e2a24;
  border: 1px solid #d8cdbd;
}

.btn-secondary:hover {
  background: #f7f1e8;
  border-color: #5c675f;
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(216, 205, 189, 0.7);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e2a24;
}

.footer-section a {
  display: block;
  color: #5c675f;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #f26a4b;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 205, 189, 0.5);
  color: #5c675f;
  font-size: 12px;
}

.footer-bottom p {
  font-size: 12px;
}

/* Icons */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 640px) {
  h1 {
    font-size: 28px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero {
    padding: 40px 0 30px;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* Accessibility */
a:focus,
button:focus {
  outline: 2px solid #f26a4b;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  body {
    background: white;
  }

  .lang-switch,
  .btn {
    display: none;
  }
}
