:root {
  --ink: #1f2a24;
  --muted: #657168;
  --paper: #fbfaf6;
  --line: #ded8ca;
  --clay: #c86f4a;
  --yellow: #f2c14e;
  --steel: #3d6f82;
  --soft: #edf3ed;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--kuji-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--body-size, 16px);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
  color: var(--ink);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 10px 30px rgba(31, 42, 36, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
}

.brand img {
  display: block;
  width: auto;
  max-width: 154px;
  max-height: 60px;
}

.default-logo {
  width: 148px;
  height: auto;
  object-fit: contain;
}

.home .site-header:not(.is-scrolled) .default-logo,
.home .site-header:not(.is-scrolled) .custom-logo-link img {
  filter: brightness(0) invert(1);
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav li {
  list-style: none;
}

.nav-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-button {
  background: var(--yellow);
  color: var(--ink);
}

.primary-button {
  background: var(--clay);
  color: var(--white);
}

.primary-button.dark {
  background: var(--ink);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 26, 22, 0.7), rgba(18, 26, 22, 0.24) 58%, rgba(18, 26, 22, 0.1)),
    linear-gradient(0deg, rgba(18, 26, 22, 0.25), rgba(18, 26, 22, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 78px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(56px, 11vw, var(--h1-size, 128px));
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, var(--h2-size, 52px));
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: var(--h3-size, 21px);
  line-height: 1.35;
}

.hero-copy {
  max-width: 620px;
  font-size: clamp(18px, 2.2vw, var(--hero-copy-size, 24px));
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section-flow {
  display: flex;
  flex-direction: column;
}

.section,
.intro-band,
.contact-band {
  padding: clamp(48px, 8vw, var(--section-pad, 100px)) 0;
}

.section-inner {
  width: min(var(--content-width, 1120px), calc(100% - 36px));
  margin: 0 auto;
}

.intro-band,
.access-section {
  background: var(--white);
}

.intro-grid,
.visit-layout,
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.intro-grid p:last-child,
.visit-layout > div > p,
.contact-layout p,
.section-lead {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.program-grid,
.link-grid {
  display: grid;
  gap: 16px;
}

.program-grid {
  grid-template-columns: repeat(var(--program-cols, 4), minmax(0, 1fr));
}

.link-grid {
  grid-template-columns: repeat(var(--link-cols, 4), minmax(0, 1fr));
}

.program-card,
.link-card {
  display: block;
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(31, 42, 36, 0.06);
}

.program-card:hover,
.link-card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

.card-number,
.link-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--steel);
  font-weight: 900;
}

.program-card p,
.step-list p,
.news-list span,
.info-list dd,
.map-panel p,
.link-card p {
  color: var(--muted);
}

.visit-band {
  background: var(--soft);
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
}

.step-list span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 900;
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--steel);
  font-weight: 800;
}

.news-list a > span {
  color: var(--ink);
}

.news-list strong {
  display: block;
  font-size: 18px;
  line-height: 1.45;
}

.news-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.news-more {
  display: inline-flex;
  margin-top: 22px;
}

.info-list {
  margin: 28px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  font-weight: 900;
}

.info-list dd {
  margin: 0;
}

.map-panel {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(61, 111, 130, 0.18), rgba(242, 193, 78, 0.24)), var(--soft);
  text-align: center;
}

.map-panel span {
  display: block;
  color: var(--steel);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.links-section {
  background: var(--paper);
}

.section-lead {
  max-width: 460px;
  margin: 0;
}

.link-card {
  min-height: 150px;
}

.link-card span {
  margin-bottom: 12px;
  font-size: 18px;
}

.instagram-section {
  background: var(--white);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.instagram-placeholder {
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.instagram-placeholder span {
  display: block;
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
}

.instagram-placeholder strong {
  display: block;
  margin-top: 72px;
  font-size: 24px;
  line-height: 1.35;
}

.instagram-placeholder p {
  color: var(--muted);
}

.contact-band {
  background: var(--yellow);
}

.free-section.free-bg-paper {
  background: var(--paper);
}

.free-section.free-bg-white {
  background: var(--white);
}

.free-section.free-bg-soft {
  background: var(--soft);
}

.free-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.free-layout-image_left .free-layout,
.free-layout-image_right .free-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.free-text p {
  color: var(--muted);
}

.free-text .primary-button {
  margin-top: 12px;
}

.free-image {
  margin: 0;
}

.free-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.text-link {
  color: var(--steel);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dark-link {
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 48px);
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.content-main,
.archive-main {
  padding-top: 140px;
}

.content-layout {
  width: min(850px, calc(100% - 36px));
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

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

  .program-grid,
  .link-grid,
  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .free-layout-image_left .free-layout,
  .free-layout-image_right .free-layout {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .visit-layout,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact-layout {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .default-logo {
    width: 108px;
  }

  .nav-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .program-grid,
  .link-grid,
  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 0;
  }

  .news-list a,
  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    flex-direction: column;
  }
}
