* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Serif JP", serif;
}

body {
  background: #f6f1e7;
  color: #3e3025;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Pages */
.page {
  display: none;
  min-height: 100vh;
}

.active {
  display: block;
}

/* Logo */
.logo {
  width: 150px;
  height: auto;
  margin: 0 auto 25px;
  display: block;
}

/* Welcome Screen */
.welcome-screen {
  background: linear-gradient(rgba(62,48,37,0.35), rgba(62,48,37,0.35)),
              url("assets/images/japan-bg.png") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
}

.welcome {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome h1 {
  font-size: 3.2rem;
  letter-spacing: 4px;
  margin-bottom: 18px;
  color: #fffdf8;
  text-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.welcome p {
  font-size: 1.2rem;
  margin-bottom: 45px;
  color: #f8f4ed;
  opacity: 0.95;
}

/* Language Buttons */
.lang-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.lang-buttons button {
  padding: 15px 34px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(139,107,74,0.92);
  color: #fffdf8;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.lang-buttons button:hover {
  background: rgba(111,83,56,0.96);
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
  background: linear-gradient(rgba(62,48,37,0.35), rgba(62,48,37,0.35)),
              url("assets/images/japan-bg.png") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
}

.main-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246,241,231,0.42);
  z-index: 0;
}

.main-content > * {
  position: relative;
  z-index: 1;
}

/* Guide Container */
.guide-wrapper {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,250,243,0.9);
  border: 1px solid #d8c7aa;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

/* Header */
.guide-header {
  text-align: center;
  padding: 22px 20px 18px;
  background: rgba(255,248,240,0.82);
  border-bottom: 1px solid #e2d5c0;
}

.guide-header h2 {
  font-size: 2rem;
  margin-bottom: 4px;
  letter-spacing: 1px;
  font-weight: 600;
}

.guide-header p {
  font-size: 0.95rem;
  color: #7a6248;
}

/* Menu */
.menu {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.menu-item {
  background: rgba(255,255,255,0.88);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5d8c3;
  transition: transform 0.25s ease;
}

.menu-item:hover {
  transform: translateY(-2px);
}

.menu-title {
  padding: 18px 22px;
  font-size: 1.1rem;
  cursor: pointer;
  background: #efe4d1;
  color: #5a4634;
  font-weight: 600;
}

.menu-content {
  display: none;
  padding: 20px 22px;
  line-height: 1.8;
  background: #fffdf9;
  color: #3e3025;
}

/* Back Button */
.back-btn {
  margin: 24px;
  background: #8b6b4a;
  color: #fffdf8;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s ease;
}

.back-btn:hover {
  background: #6f5338;
}

/* Responsive */
@media (max-width: 768px) {
  .welcome h1 {
    font-size: 2.3rem;
  }

  .guide-header h2 {
    font-size: 1.8rem;
  }

  .menu {
    padding: 18px;
  }

  .lang-buttons button {
    width: 100%;
    max-width: 260px;
  }
}
