:root {
  --ink: #1a1714;
  --ink-soft: #3d3832;
  --muted: #6a635a;
  --paper: #efeae1;
  --paper-deep: #e4ddd1;
  --gold: #b8922e;
  --gold-bright: #c9a227;
  --burgundy: #6e2f22;
  --max: 1100px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background: linear-gradient(180deg, #f4f0e8 0%, var(--paper) 55%, var(--paper-deep) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 9.5rem 0.65rem 1rem;
  background: rgba(244, 240, 232, 0.92);
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
  backdrop-filter: blur(8px);
}

.lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.bgm-controls {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.bgm-volume {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.35rem 0.4rem;
  border: 1px solid rgba(26, 23, 20, 0.16);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0.2rem;
  height: 2.5rem;
  box-sizing: border-box;
}

.bgm-volume__mark {
  flex-shrink: 0;
  width: 0.7rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
  user-select: none;
  pointer-events: none;
}

.bgm-volume__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 4.2rem;
  height: 0.28rem;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(26, 23, 20, 0.18);
  cursor: pointer;
  outline: none;
}

.bgm-volume__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #f7f1e6;
  box-shadow: 0 0 0 1px rgba(26, 23, 20, 0.2);
  cursor: pointer;
}

.bgm-volume__slider::-moz-range-thumb {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #f7f1e6;
  box-shadow: 0 0 0 1px rgba(26, 23, 20, 0.2);
  cursor: pointer;
}

.bgm-volume__slider::-moz-range-track {
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(26, 23, 20, 0.18);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bgm-toggle {
  position: static;
  transform: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 23, 20, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  border-radius: 0.2rem;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bgm-toggle:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.bgm-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f1e6;
}

.bgm-toggle.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.bgm-toggle.is-loading .bgm-toggle__glyph {
  animation: bgm-pulse 0.9s ease-in-out infinite;
}

.bgm-toggle.is-loading .bgm-toggle__glyph::after {
  display: none;
}

@keyframes bgm-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.bgm-toggle__glyph {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
}

.bgm-toggle[aria-pressed="false"] .bgm-toggle__glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-35deg);
  border-radius: 1px;
}

.lang-tab {
  appearance: none;
  border: 1px solid rgba(26, 23, 20, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  border-radius: 0.2rem;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lang-tab:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.lang-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f1e6;
}

.lang-panel {
  display: none;
}

.lang-panel.active {
  display: block;
}

.hero {
  position: relative;
  min-height: min(88svh, 820px);
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(165deg, #f7f3eb 0%, #ebe4d6 48%, #e2d8c8 100%);
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  min-height: inherit;
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}

.hero__copy {
  max-width: 34rem;
  animation: rise 0.85s ease-out both;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
}

.brand__mark {
  width: clamp(5.5rem, 14vw, 7.25rem);
  height: clamp(5.5rem, 14vw, 7.25rem);
  border-radius: 0.55rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(184, 146, 46, 0.35);
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--ink-soft);
}

.brand__en {
  margin: -0.2rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  color: var(--gold);
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--ink);
  color: #f7f1e6;
}

.btn--primary:hover {
  background: #2c2620;
  color: #f7f1e6;
}

.hero__shot {
  margin: 0;
  animation: rise 1s 0.12s ease-out both;
}

.hero__shot img {
  width: 100%;
  border-radius: 0.35rem;
  border: 1px solid rgba(26, 23, 20, 0.1);
  box-shadow: 0 16px 36px rgba(26, 23, 20, 0.12);
}

.section {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section__head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section__head h2,
.section--note h2,
.section--site-notice h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.feature.is-in {
  opacity: 1;
  transform: none;
}

.feature img {
  width: min(100%, 280px);
  margin-inline: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(26, 23, 20, 0.12);
  box-shadow: 0 14px 28px rgba(26, 23, 20, 0.1);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

.section--note,
.section--site-notice {
  border-top: 1px solid rgba(26, 23, 20, 0.1);
}

.section--note p,
.section--site-notice p {
  max-width: 42rem;
  color: var(--ink-soft);
}

.section__strong {
  font-weight: 600;
  color: var(--ink) !important;
}

.section--site-notice p + p {
  margin-top: 0.75rem;
}

.imprint {
  margin-top: 1rem !important;
  font-size: 0.92rem;
  color: var(--muted) !important;
}

.footer__legal {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(26, 23, 20, 0.1);
  background: rgba(26, 23, 20, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.05rem;
}

.footer p {
  margin: 0.35rem 0;
}

.footer__contact {
  color: var(--ink-soft);
  user-select: text;
}

.footer__small {
  margin-top: 0.85rem !important;
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-right: 8.5rem;
  }

  .bgm-volume__slider {
    width: 3.4rem;
  }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }

  .feature {
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
  }

  .feature--flip {
    grid-template-columns: 1fr 240px;
  }

  .feature--flip img {
    order: 2;
  }

  .feature img {
    margin-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__copy,
  .hero__shot,
  .feature {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .topbar {
    backdrop-filter: none;
  }
}
