/* EUCA — static rebuild of the former Softr site */
:root {
  --brand: #2b0101;
  --brand-2: #460303;
  --muted-bg: #f7f2f2;
  --chip-text: #664242;
  --chip-border: #d9d2d2;
  --chip-active: #e5cfcf;
  --timeline: #fae39e;
  --timeline-num: #eab10b;
  --container: 1140px;
  --font: "Work Sans", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--brand);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}
.section { padding: 96px 0; }
.section--muted { background: var(--muted-bg); }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 10px 40px -10px rgba(0,0,0,.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-header .logo img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; }
.nav a {
  display: block;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--brand);
}
.nav a:hover { opacity: .75; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  padding: 5px;
  cursor: pointer;
}
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 991px) {
  .site-header .container { height: 60px; }
  .site-header .logo img { height: 44px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 8px 0 16px;
    box-shadow: 0 10px 20px -10px rgba(0,0,0,.2);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 24px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 0;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .85; }
.btn--pill {
  padding: 12px 40px;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  background: var(--brand);
  border-radius: 9999px;
}
.btn--light {
  padding: 16px 64px;
  font-size: 20px;
  line-height: 30px;
  color: var(--brand-2);
  background: var(--muted-bg);
  border-radius: 8px;
}

/* ---------- Home: hero ---------- */
.hero { padding: 26px 0 30px; }
.hero .row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 30px;
  align-items: center;
}
.hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero h1 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  padding-bottom: 16px;
}
.hero p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  padding-bottom: 16px;
}
@media (max-width: 767px) {
  .hero { padding: 32px 0; }
  .hero .row { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero .hero-text { order: -1; }
  .hero h1 { font-size: 24px; }
}

/* ---------- Section headings ---------- */
.section-title {
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 8px;
}
.section-subtitle {
  font-size: 20px;
  line-height: 30px;
  font-weight: 300;
  text-align: center;
}

/* ---------- Home: 3 step cards ---------- */
.step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.step-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
}
.step-card__img {
  position: relative;
  height: 384px;
  background-size: cover;
  background-position: center;
}
.step-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .25s;
}
.step-card__more {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  border: 1px solid #fff;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s;
}
.step-card:hover .step-card__img::after,
.step-card:hover .step-card__more { opacity: 1; }
.step-card__body { padding: 24px; }
.step-card h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}
.step-card p {
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
}
@media (max-width: 991px) {
  .step-cards { grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto; }
}

/* ---------- Home: activities ---------- */
.activities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.activity { text-align: center; }
.activity__img {
  display: block;
  width: 100%;
  max-width: 256px;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 40px;
}
.activity h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.activity p {
  font-size: 14px;
  line-height: 21px;
  font-weight: 300;
}
a.activity:hover .activity__img { opacity: .85; }
@media (max-width: 991px) {
  .activities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .activities { grid-template-columns: 1fr; gap: 48px; }
  .activity__img { max-width: 300px; margin-bottom: 24px; }
}

/* ---------- CTA ---------- */
.cta {
  padding: 96px 0;
  color: var(--muted-bg);
  background: var(--brand-2) url("/images/cta-bg.webp") center / cover no-repeat;
}
.cta .row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 30px;
}
.cta h2 {
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
  padding-bottom: 16px;
}
.cta p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  padding-bottom: 96px;
}
.cta .cta-action { display: flex; justify-content: center; align-items: flex-start; padding-top: 63px; }
@media (max-width: 767px) {
  .cta { padding: 64px 0; }
  .cta .row { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .cta p { padding-bottom: 32px; }
  .cta .cta-action { padding-top: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 96px 0;
  background: var(--muted-bg);
}
.site-footer .row {
  display: grid;
  grid-template-columns: 5fr 1fr 3fr 3fr;
  gap: 30px;
}
.site-footer .footer-logo img { width: 160px; height: auto; }
.site-footer .footer-info {
  padding-top: 20px;
  font-size: 16px;
  line-height: 32px;
  font-weight: 300;
}
.site-footer h4 {
  font-size: 16px;
  line-height: 32px;
  font-weight: 600;
  color: #000;
  padding-left: 34px;
}
.site-footer ul a {
  display: block;
  padding: 4px 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  color: #000;
}
.site-footer ul a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .site-footer { padding: 64px 0; }
  .site-footer .row { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-spacer { display: none; }
  .site-footer h4 { padding-left: 0; }
}

/* ---------- 3step page ---------- */
.timeline { margin-top: 40px; }
.timeline__step { position: relative; padding-top: 58px; }
.timeline__step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: var(--timeline);
}
.timeline__num {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border: 1px solid var(--timeline);
  border-radius: 50%;
  background: #fff;
  color: var(--timeline-num);
  font-size: 18px;
  line-height: 23px;
  text-align: center;
}
.timeline__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  padding: 0 24px 48px;
}
.timeline__row img { width: 100%; height: auto; }
.timeline__step--reverse .timeline__media { order: 2; }
.timeline__text h2 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}
.timeline__text p,
.timeline__text li {
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
}
.timeline__text p + p,
.timeline__text li + li { margin-top: 27px; }
.timeline__text p.tight { margin-top: 0; }
.timeline__text ul { margin: 54px 0; }
@media (max-width: 767px) {
  .timeline__step::before { left: 13px; }
  .timeline__num { left: 0; transform: none; }
  .timeline__step { padding-top: 40px; }
  .timeline__row { grid-template-columns: 1fr; row-gap: 24px; padding: 0 0 48px 40px; }
  .timeline__step--reverse .timeline__media { order: 0; }
  .timeline__text p, .timeline__text li { font-size: 16px; line-height: 26px; }
}

/* ---------- About page ---------- */
.page-title {
  font-size: 36px;
  line-height: 54px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 16px;
}
.page-lead {
  font-size: 20px;
  line-height: 30px;
  font-weight: 300;
  text-align: center;
  padding-bottom: 20px;
}
.members {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 48px;
  text-align: center;
}
.member__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
}
.member h2 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
}
.member .role {
  display: block;
  font-size: 16px;
  line-height: 24px;
  padding-bottom: 16px;
}
.member p {
  font-size: 14px;
  line-height: 21px;
  font-weight: 300;
}
.member .social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 4px;
}
.member .social a { display: block; padding: 2px; }
.member .social svg { width: 16px; height: 16px; fill: #000; }
.member .social a:hover svg { opacity: .6; }
@media (max-width: 991px) { .members { grid-template-columns: repeat(2, 1fr); row-gap: 56px; } }
@media (max-width: 575px) { .members { grid-template-columns: 1fr; } }

/* ---------- Community page ---------- */
.page-community { background: var(--muted-bg); }
.community-head { padding: 96px 0 56px; }
.community-head h1 {
  font-size: 36px;
  line-height: 48px;
  font-weight: 600;
  margin-bottom: 24px;
}
.community-head p { font-size: 20px; line-height: 30px; font-weight: 300; }
.community-body {
  display: grid;
  grid-template-columns: 254px 1fr;
  gap: 38px;
  padding-bottom: 160px;
}
.filters__label {
  font-size: 12px;
  line-height: 18px;
  color: #3b3b3b;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 4px 8px 8px 0;
}
.filters__list { display: flex; flex-direction: column; gap: 8px; }
.chip {
  display: block;
  width: 100%;
  text-align: left;
  font: 600 14px/21px var(--font);
  color: var(--chip-text);
  background: var(--muted-bg);
  border: 1px solid var(--chip-border);
  border-radius: 9999px;
  padding: 4px 12px;
  cursor: pointer;
}
.chip:hover, .chip[aria-pressed="true"] { background: var(--chip-active); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.card[hidden] { display: none; }
.card__img { width: 100%; height: 160px; object-fit: cover; }
.card__title {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--chip-text);
  padding: 16px 8px 12px;
  min-height: 102px;
}
.card__desc {
  font-size: 14px;
  line-height: 16.8px;
  color: var(--brand-2);
  padding: 0 8px 8px;
  min-height: 121px;
}
.card__url {
  border-top: 1px solid #e6e6e6;
  font-size: 14px;
  line-height: 21px;
  color: #969696;
  padding: 12px 8px;
  word-break: break-all;
}
.cards__empty { grid-column: 1 / -1; color: #969696; padding: 24px 0; }
@media (max-width: 991px) {
  .community-body { grid-template-columns: 1fr; }
  .filters__list { flex-direction: row; flex-wrap: wrap; }
  .chip { width: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .community-head { padding: 56px 0 32px; }
  .cards { grid-template-columns: 1fr; }
  .card__title, .card__desc { min-height: 0; }
}

/* ---------- Contact page ---------- */
.contact { padding: 42px 0 88px; }
.contact-form { max-width: 554px; margin: 0 auto; }
.contact-form h1 {
  font-size: 24px;
  line-height: 48px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 8px;
}
.field {
  display: grid;
  grid-template-columns: 174px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field label {
  padding-top: 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  color: #616161;
}
.field input,
.field textarea {
  width: 100%;
  font: 300 14px/21px var(--font);
  color: var(--brand);
  background: #fff;
  border: 1px solid #c2c2c2;
  border-radius: 8px;
  padding: 9px 11px;
  outline: none;
}
.field input:focus,
.field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.field input::placeholder,
.field textarea::placeholder { color: #9e9e9e; }
.field textarea { height: 120px; resize: vertical; }
.input-icon { position: relative; }
.input-icon svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #616161;
  fill: none;
  pointer-events: none;
}
.input-icon input { padding-left: 39px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--submit {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(17,17,17,.04), 0 8px 16px rgba(33,33,33,.08);
}
.btn--submit:disabled { opacity: .6; cursor: wait; }
.form-status { margin-top: 16px; font-size: 14px; text-align: center; min-height: 21px; }
.form-status.is-error { color: #c62828; }
.form-success { text-align: center; padding: 40px 0; font-size: 16px; line-height: 28px; }
@media (max-width: 575px) {
  .field { grid-template-columns: 1fr; gap: 4px; }
  .field label { padding-top: 0; }
}

/* ---------- 404 ---------- */
.not-found { padding: 120px 0; text-align: center; }
.not-found h1 { font-size: 36px; margin-bottom: 16px; }
.not-found p { margin-bottom: 32px; font-weight: 300; }
