@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-muted: #edf4ff;
  --text: #122033;
  --text-soft: #4b5f78;
  --primary: #0f766e;
  --primary-strong: #0b5c56;
  --border: #d5e3f4;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, #e8f4ff 0, transparent 35%),
    radial-gradient(circle at 90% 0, #eefcf8 0, transparent 32%),
    var(--bg);
  color: var(--text);
  min-height: 100%;
}

.viewer-page {
  background: #000;
  --viewer-header-h: 44px;
}

.viewer-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 46;
  height: var(--viewer-header-h);
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.viewer-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.1;
}

.viewer-header .menu-toggle {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  border-radius: 8px;
}

.viewer-main iframe {
  width: 100vw;
  height: calc(100dvh - var(--viewer-header-h));
  border: 0;
  display: block;
  margin-top: var(--viewer-header-h);
}

.viewer-main-full iframe {
  height: 100dvh;
  margin-top: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  font-size: 1.08rem;
  cursor: pointer;
}

.site-title {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.3;
}

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

.lang-btn {
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.site-menu {
  position: fixed;
  top: 64px;
  left: 12px;
  width: min(280px, calc(100% - 24px));
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: none;
  z-index: 45;
}

.site-menu.open {
  display: flex;
}

.site-menu a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  border-color: var(--border);
  background: var(--surface-muted);
}

.container {
  width: min(1080px, 92%);
  margin: 28px auto 40px;
}

.home-container {
  margin-top: 16px;
  margin-bottom: 16px;
}

.subpage-container {
  margin-top: 16px;
  margin-bottom: 16px;
}

.hero,
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  box-shadow: none;
  animation: none;
}

.hero-banner {
  padding: 10px 12px;
  overflow: hidden;
}

.hero-banner img {
  width: min(92%, 1200px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-banner img {
    width: 112%;
    max-width: none;
    margin-left: -6%;
  }
}

.eyebrow {
  margin: 0;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-subline {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.home-mini {
  margin: 8px 0 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.hero h1,
.content-card h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.hero p,
.content-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-soft);
}

.content-card p + p {
  margin-top: 12px;
}

.tree-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tree-links {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.tree-link-item {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 600;
}

.tree-link-item:hover,
.tree-link-item:focus-visible {
  background: var(--surface-muted);
}

.embed-wrap {
  margin-top: 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #eef5ff;
}

.embed-wrap iframe {
  width: 100%;
  min-height: 72vh;
  border: 0;
  display: block;
}

.download-list {
  margin-top: 16px;
}

.download-item {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
}

.download-item + .download-item {
  margin-top: 10px;
}

.download-item h2 {
  margin-top: 0;
}

.button {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--primary-strong);
}

.contact-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.hint {
  font-size: 0.9rem;
}

.contact-qr {
  margin-top: 14px;
  width: min(180px, 100%);
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.content-card ol li + li {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.85);
}

.site-footer p {
  margin: 3px 0;
}

.site-footer p:last-child {
  font-size: 0.88em;
}

@media (min-width: 900px) {
  .site-header {
    padding: 8px 16px;
  }

  .site-title {
    font-size: 0.9rem;
  }

  .site-menu {
    left: 22px;
  }
}

@media (max-width: 520px) {
  .hero,
  .content-card {
    padding: 18px;
  }

  .site-title {
    font-size: 0.86rem;
  }
}
