:root {
  --ink: #23313d;
  --muted: #65727e;
  --paper: #fffdf8;
  --panel: #ffffff;
  --line: #d9e1df;
  --blue: #2f6f9f;
  --blue-dark: #1f5278;
  --green: #6f8f64;
  --coral: #cf6f55;
  --gold: #d9a441;
}

* {
  letter-spacing: 0;
}

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

.site-nav {
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(35, 49, 61, 0.12);
  box-shadow: 0 10px 28px rgba(35, 49, 61, 0.08);
  position: relative;
}

.navbar-brand,
.site-nav .nav-link {
  color: var(--ink);
}

.site-nav .nav-link {
  font-weight: 600;
}

.site-nav {
  padding-right: 24px;
}

.powered-by-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  margin-left: 1rem;
}

.powered-by-mobile {
  display: none;
}

.powered-by-desktop {
  position: absolute;
  top: 50%;
  right: 24px;
  margin-left: 0;
  transform: translateY(-50%);
}

.powered-by-logo:hover {
  color: var(--blue-dark);
}

.powered-by-text {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.powered-by-name {
  font-size: 0.82rem;
  font-weight: 800;
}

.navbar-toggler {
  border-color: rgba(35, 49, 61, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2835, 49, 61, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero {
  min-height: 78vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 128px 0 80px;
  background:
    linear-gradient(115deg, rgba(47, 111, 159, 0.14), transparent 42%),
    linear-gradient(0deg, rgba(111, 143, 100, 0.1), rgba(255, 253, 248, 0) 56%),
    repeating-linear-gradient(90deg, rgba(35, 49, 61, 0.035) 0, rgba(35, 49, 61, 0.035) 1px, transparent 1px, transparent 76px),
    #fffdf8;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-content {
  position: relative;
  color: var(--ink);
}

.hero-kicker,
.section-kicker {
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
}

.hero-copy {
  max-width: 650px;
  margin: 1.25rem 0 1.75rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-photo-frame {
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  background: white;
  border: 10px solid white;
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(35, 49, 61, 0.18);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.section {
  padding: 72px 0;
}

.about-section {
  background: #f4f7f2;
}

.feature-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(35, 49, 61, 0.16);
}

.section-title {
  max-width: 720px;
  margin-bottom: 28px;
}

.section h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.contact-strip div {
  background: white;
  padding: 18px;
}

.contact-strip span,
.schedule-card span,
.notice-date {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-strip strong {
  display: block;
  margin-top: 4px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.schedule-card,
.notice-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 49, 61, 0.08);
}

.schedule-card {
  min-height: 190px;
  padding: 20px;
  border-top: 5px solid var(--green);
}

.schedule-card.closed {
  border-top-color: var(--coral);
}

.schedule-card h3 {
  margin: 8px 0 12px;
  font-size: 1.28rem;
  font-weight: 800;
}

.schedule-card p {
  color: var(--muted);
  margin: 0;
}

.notice-section {
  background: #f8f1ea;
}

.notice-grid {
  column-count: 2;
  column-gap: 22px;
}

.notice-card {
  overflow: hidden;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
}

.notice-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: white;
}

.notice-body {
  padding: 22px;
}

.notice-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.notice-body p {
  color: var(--muted);
  white-space: pre-wrap;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.footer {
  background: var(--ink);
  color: white;
  padding: 24px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
}

.footer .powered-by-logo {
  color: white;
  margin-left: 0;
}

.footer .powered-by-text {
  color: rgba(255, 255, 255, 0.66);
}

.footer .powered-by-logo:hover {
  color: white;
}

@media (max-width: 991px) {
  .hero {
    min-height: 76vh;
  }

  .site-nav {
    padding-right: 0;
  }

  .powered-by-desktop {
    display: none;
  }

  .powered-by-mobile {
    display: inline-flex;
    align-items: flex-start;
    margin: 0.75rem 0 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-photo-frame {
    max-width: 620px;
  }

  .contact-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .notice-grid {
    column-count: 1;
  }
}

@media (max-width: 575px) {
  .powered-by-logo {
    font-size: 0.8rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer .powered-by-logo {
    align-items: center;
  }

  .hero {
    padding: 104px 0 56px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-photo-frame {
    border-width: 6px;
  }

  .section {
    padding: 52px 0;
  }
}
