:root {
  --navy: #0d2238;
  --navy-2: #162d49;
  --green: #1f4037;
  --gold: #c2a15c;
  --paper: #f3eee4;
  --ivory: #fffaf0;
  --greige: #e7dfd2;
  --white: #fff8ea;
  --ink: #1b1d20;
  --dark-navy: #101f33;
  --muted: #6b7078;
  --line: #d3c7b6;
  --soft: #ebe3d5;
  --radius: 8px;
  --shadow: 0 22px 54px rgba(13, 34, 56, 0.11);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(211, 199, 182, 0.78);
  background: rgba(255, 250, 240, 0.93);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(13, 34, 56, 0.14);
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--dark-navy);
}

.menu a:hover,
.menu a.active {
  background: var(--navy);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 650px;
  overflow: hidden;
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 34, 56, 0.94), rgba(13, 34, 56, 0.72) 52%, rgba(31, 64, 55, 0.36)),
    url("assets/hero-community.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 150, 88, 0.85), transparent);
}

.hero-inner {
  position: relative;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 66px;
  color: var(--white);
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--dark-navy);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero h1 {
  width: min(780px, 100%);
  margin: 18px 0 24px;
  color: var(--white);
  font-size: clamp(33px, 4.8vw, 54px);
  font-weight: 600;
  line-height: 1.28;
}

.hero-copy {
  width: min(720px, 100%);
  margin: 0 0 30px;
  color: rgba(255, 253, 247, 0.88);
  font-size: 17px;
  line-height: 1.95;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.btn.secondary {
  border-color: rgba(255, 253, 247, 0.5);
  background: rgba(255, 253, 247, 0.1);
  color: var(--white);
}

.btn.dark {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

main {
  min-height: 70vh;
}

.section {
  padding: 104px 0;
}

.section.alt {
  background: var(--ivory);
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

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

.section-head p {
  width: min(620px, 100%);
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.link-arrow {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

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

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  box-shadow: 0 12px 30px rgba(13, 34, 56, 0.055);
}

.card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.card-body {
  padding: 26px 26px 28px;
}

.card-media {
  display: grid;
  place-items: center;
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(13, 34, 56, 0.84), rgba(31, 64, 55, 0.78)),
    var(--navy);
  color: rgba(255, 253, 248, 0.9);
  font-family: var(--serif);
  font-size: 38px;
}

.card-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--navy);
}

.thumb {
  min-height: 190px;
  background-image: url("assets/sample-thumbs.png");
  background-repeat: no-repeat;
  background-size: 300% 300%;
}

.thumb-study { background-position: 0 0; }
.thumb-run { background-position: 50% 0; }
.thumb-travel { background-position: 100% 0; }
.thumb-parent { background-position: 0 50%; }
.thumb-learning { background-position: 50% 50%; }
.thumb-ai { background-position: 100% 50%; }
.thumb-work { background-position: 0 100%; }
.thumb-event { background-position: 50% 100%; }
.thumb-video { background-position: 100% 100%; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(181, 150, 88, 0.38);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.card p {
  margin: 0 0 18px;
  color: #434850;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.filter-control {
  display: grid;
  gap: 5px;
  min-width: 190px;
  flex: 1;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select,
input {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 94px;
  padding: 10px 12px;
  resize: vertical;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 112px 0 82px;
  background:
    linear-gradient(115deg, rgba(13, 34, 56, 0.94), rgba(13, 34, 56, 0.7) 54%, rgba(31, 64, 55, 0.45)),
    var(--page-hero-image),
    var(--navy);
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 161, 92, 0.78), transparent);
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero-shops { --page-hero-image: url("assets/shop-stan.jpg"); }
.page-hero-reports { --page-hero-image: url("assets/sample-thumbs.png"); background-position: center 22%; }
.page-hero-education { --page-hero-image: url("assets/sample-thumbs.png"); background-position: center 52%; }
.page-hero-jobs { --page-hero-image: url("assets/shop-quickcep.png"); background-position: right center; }
.page-hero-events { --page-hero-image: url("assets/sample-thumbs.png"); background-position: center bottom; }
.page-hero-videos { --page-hero-image: url("assets/sample-thumbs.png"); background-position: right bottom; }
.page-hero-about { --page-hero-image: url("assets/hero-community.png"); }

.page-hero h1 {
  margin: 14px 0 18px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: rgba(255, 253, 247, 0.86);
  font-size: 17px;
  line-height: 2;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(13, 34, 56, 0.98), rgba(31, 64, 55, 0.95)),
    var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.feature-band h2 {
  color: var(--white);
}

.feature-band p {
  margin: 16px 0 0;
  color: rgba(255, 253, 248, 0.82);
  line-height: 2;
}

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

.list li {
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 253, 247, 0.78);
}

.form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.note {
  padding: 22px;
  border: 1px solid rgba(181, 150, 88, 0.45);
  border-radius: var(--radius);
  background: #fbf6ea;
  color: #4d412d;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: rgba(255, 253, 248, 0.75);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  font-size: 13px;
}

.footer strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.hidden {
  display: none;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .menu {
    justify-content: flex-start;
  }

  .hero {
    min-height: 600px;
  }

  .grid,
  .grid.two,
  .feature-band,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 66px;
    height: 66px;
  }

  .menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
    gap: 6px;
    padding-bottom: 4px;
    font-size: 11px;
  }

  .menu a {
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .hero-inner {
    padding: 76px 0 64px;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 31px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 15px;
    line-height: 2;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 68px 0;
  }

  .card-body,
  .feature-band,
  .form-card {
    padding: 24px;
  }

  .page-hero p {
    max-width: 340px;
    overflow-wrap: anywhere;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-control {
    min-width: 0;
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

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