/* Nikkei Youth Association — shared styles */

:root {
  --red: #bc002d;
  --red-dark: #8f0022;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --paper: #faf8f5;
  --panel: #ffffff;
  --border: #e8e2da;
  --accent-gold: #c9a227;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic Pro", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand .mark {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}

.brand span.name-en {
  display: block;
  font-size: 0.95rem;
}

.brand span.name-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
}

nav.primary {
  display: flex;
  gap: 28px;
}

nav.primary a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

nav.primary a.active,
nav.primary a:hover {
  color: var(--red);
}

nav.primary a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 720px) {
  nav.primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav.primary.open { display: flex; }
  nav.primary a {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(188,0,45,0.10), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  padding: 90px 24px 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero .kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 20px;
  line-height: 1.15;
  font-weight: 800;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--muted);
}

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 24px;
}

section.alt {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 12px;
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.page-title {
  text-align: left;
  max-width: none;
  margin: 0 0 48px;
}

/* ---------- Grids / Cards ---------- */

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 26px;
}

.card .num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.dropdown-card {
  padding: 8px 0;
}

.dropdown-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dropdown-card summary::-webkit-details-marker {
  display: none;
}

.dropdown-card summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}

.dropdown-card[open] summary::after {
  content: "\2212";
}

.dropdown-card summary h3 {
  flex: 1;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
}

.dropdown-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Values / pills ---------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill {
  border: 1.5px solid var(--border);
  background: var(--panel);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 800px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  text-align: center;
}

.avatar {
  position: relative;
  overflow: hidden;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.team-card .role {
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-grid .tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(135deg, #f1e9dd, #e7d9c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--red);
  opacity: 0.8;
}

.gallery-grid .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Instagram embeds ---------- */

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .insta-grid { grid-template-columns: 1fr; }
}

/* ---------- Timeline (Join steps) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.step .step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.field label .req { color: var(--red); }

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field { margin-bottom: 16px; }

/* ---------- Info blocks ---------- */

.info-block {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.info-block .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(188,0,45,0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
}

.info-block .icon.icon-flag {
  width: 56px;
  height: 56px;
  overflow: hidden;
  font-size: 42px;
  line-height: 1;
  background: transparent;
}

.info-block h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.info-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Post / blog card (impact) ---------- */

.post-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
}

.post-card .photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f1e9dd, #e0cfae);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 2rem;
}

.post-card .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.post-card .date {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

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

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

.stat-row .stat .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
}

.stat-row .stat .label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: #e8e2da;
  padding: 56px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto 36px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #fff;
}

.footer-grid p, .footer-grid a {
  color: #b8b0a4;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 10px;
}

.footer-grid a:hover { color: #fff; }

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

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #4a4a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.social-row a:hover {
  background: var(--red);
  border-color: var(--red);
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 0.82rem;
  color: #83786c;
  text-align: center;
}
