:root {
  --bg: #f6f1e8;
  --surface: #fffaf3;
  --text: #221f1b;
  --muted: #6d6257;
  --line: #d8ccbf;
  --accent: #0f766e;
  --accent-soft: #d9efeb;
  --max-width: 1120px;
  --sidebar-width: clamp(160px, 13vw, 220px);
  --shadow: 0 18px 40px rgba(34, 31, 27, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100svh;
}

.site-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100svh;
}

.site-header,
.site-footer {
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 243, 0.82);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  align-self: start;
  min-height: 100svh;
  border-right: 1px solid rgba(216, 204, 191, 0.8);
}

.site-sidebar {
  width: var(--sidebar-width);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-header .container {
  width: auto;
  margin: 0;
}

.header-inner {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 24px;
  max-width: min(160px, 45vw);
  max-height: 28px;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.03rem;
}

.site-main {
  flex: 1;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: var(--accent-soft);
}

.site-footer {
  border-top: 1px solid rgba(216, 204, 191, 0.8);
}

@media (max-width: 767px) {
  .site-layout {
    display: block;
  }

  .site-content {
    min-height: 0;
  }

  .site-header {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 204, 191, 0.8);
  }

  .site-sidebar {
    width: 100%;
  }

  .site-header .container {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    gap: 1rem;
    padding: 1rem 0;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
