:root {
  --navy: #0f172a;
  --blue: #1e40af;
  --gold: #d4a017;
  --paper: #f8fafc;
  --ink: #1f2937;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.max-w-3xl {
  max-width: 55rem!important;
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.28)),
    url("../img/hero-residence.jpg");
  background-position: center;
  background-size: cover;
}

.page-hero {
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.54)),
    var(--page-image);
  background-position: center;
  background-size: cover;
}

.section-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gold-line {
  width: 52px;
  height: 3px;
  background: var(--gold);
}

.nav-link {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
}

.header-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  background: var(--gold);
  color: #111827;
  font-weight: 800;
  padding: 0 1.15rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary:hover {
  background: #e2b42c;
  box-shadow: 0 12px 28px rgba(212, 160, 23, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  padding: 0 1.15rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.image-card {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.language-select select {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0 2.15rem 0 0.8rem;
}

.language-select select:focus {
  outline: 3px solid rgba(30, 64, 175, 0.15);
  border-color: var(--blue);
}

.mobile-panel {
  display: none;
}

.mobile-panel.is-open {
  display: block;
}

.form-field {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0.85rem 0.95rem;
  color: #111827;
}

.form-field:focus {
  outline: 3px solid rgba(30, 64, 175, 0.15);
  border-color: var(--blue);
}

.site-footer {
  background: #0f172a;
  color: #fff;
}

.footer-logo {
  width: min(100%, 260px);
  height: auto;
  border-radius: 4px;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-links,
.footer-service-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.footer-links a,
.footer-service-links a {
  color: inherit;
}

.footer-links a:hover,
.footer-service-links a:hover {
  color: #fbbf24;
}

.footer-service-links a {
  display: grid;
  gap: 0.2rem;
}

.footer-service-links span {
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72)),
      url("../img/hero-residence.jpg");
  }
}
