/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-chrome);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 25px;
  color: var(--color-cream);
}

.brand-mark-small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  color: #fff;
}

/* Region sits as a distinct third tier next to the wordmark, divided by a
   rule — the parent brand mark stays plain/undecorated. */
.brand-region-divider {
  width: 1px;
  height: 32px;
  background: oklch(0.3 0 0);
  margin: 0 4px;
  flex-shrink: 0;
}

.brand-region {
  font-family: "Noto Serif JP", var(--font-heading), serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-cream);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-cream);
}

.brand-title-small {
  font-size: 16px;
}

.brand-accent {
  color: var(--color-accent);
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gray-65);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
}

.nav-toggle-check {
  display: none;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid oklch(0.32 0 0);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: oklch(0.9 0.005 90);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: oklch(0.9 0.005 90);
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle-check:checked ~ .site-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-chrome);
    padding: 18px clamp(16px, 4vw, 40px);
    gap: 14px;
    z-index: 30;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 14px;
  color: oklch(0.9 0.005 90);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.nav-link-en {
  font-size: 10px;
  font-weight: 400;
  color: var(--gray-60);
  letter-spacing: 0.04em;
}

.nav-text-link {
  font-weight: 600;
  font-size: 13px;
  color: oklch(0.9 0.005 90);
  white-space: nowrap;
}

.nav-text-link:hover {
  color: #fff;
}

.nav-text-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  color: oklch(0.9 0.005 90);
  white-space: nowrap;
  cursor: pointer;
}

.nav-text-btn:hover {
  color: #fff;
}

.btn {
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
/* .btn on <button>/<input type=submit> otherwise keeps a UA frame + font;
   .btn-danger re-declares its outline below and still wins. */

.btn-accent {
  background: var(--color-accent);
  color: var(--color-cream-brightest);
}

.btn-accent:hover {
  color: var(--color-cream-brightest);
  opacity: 0.92;
}

.btn-danger {
  background: #fff;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-danger:hover {
  background: var(--color-accent);
  color: var(--color-cream-brightest);
}

