/* 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;
}

h4 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
}

p {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
  color: #5c675f;
  margin-bottom: 16px;
}

ul,
ol {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
  color: #5c675f;
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

/* 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);
}

/* Main Content */
.main {
  padding: 40px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: #5c675f;
}

.content-section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid rgba(216, 205, 189, 0.7);
  margin-bottom: 24px;
}

.content-section h3 {
  color: #f26a4b;
  margin-top: 24px;
}

.content-section h3:first-child {
  margin-top: 0;
}

/* 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;
}

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

  .page-title {
    font-size: 24px;
  }

  .content-section {
    padding: 20px;
  }

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

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

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

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

  .lang-switch {
    display: none;
  }
}
