/* ===== Nav: fixed, transparent -> blurred white on scroll ===== */
#site-nav {
  background: transparent;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
#site-nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(27, 46, 56, 0.08);
}

#site-nav .nav-brand,
#site-nav .nav-link {
  color: #ffffff;
  transition: color .35s ease;
}
#site-nav.scrolled .nav-brand,
#site-nav.scrolled .nav-link {
  color: #2C4A5A;
}
#site-nav .nav-link {
  position: relative;
}
#site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #E8A317;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
#site-nav .nav-link:hover::after {
  transform: scaleX(1);
}

#mobile-menu-btn {
  color: #ffffff;
  transition: color .35s ease;
}
#site-nav.scrolled #mobile-menu-btn {
  color: #2C4A5A;
}

.mobile-nav-link {
  color: #2C4A5A;
}

/* ===== Hero motif ===== */
.hero-motif {
  animation: hero-float 8s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-motif { animation: none; }
}

/* ===== Pills ===== */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: .8125rem;
  font-weight: 700;
  padding: .375rem .875rem;
  border-radius: 999px;
  background: rgba(44, 74, 90, 0.06);
  color: #2C4A5A;
}
.pill-sm {
  font-size: .75rem;
  padding: .3rem .75rem;
  background: rgba(232, 163, 23, 0.12);
  color: #B97A12;
}

/* ===== Steps (進め方) ===== */
.step-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.step-num {
  display: block;
  font-weight: 900;
  font-size: 1.75rem;
  color: #F2C230;
  margin-bottom: .75rem;
  font-variant-numeric: tabular-nums;
}

/* ===== Issue cards ===== */
.issue-card {
  cursor: pointer;
}

/* ===== Modal content typography (shared, populated via JS templates) ===== */
.modal-eyebrow {
  font-weight: 700;
  font-size: .8125rem;
  color: #D9861A;
  margin-bottom: .5rem;
}
.modal-heading {
  font-weight: 900;
  font-size: 1.375rem;
  color: #1B2E38;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.modal-body {
  color: rgba(27, 46, 56, 0.8);
  line-height: 1.9;
  font-size: .9375rem;
}
.modal-body-sm {
  font-size: .875rem;
  line-height: 1.85;
}
.modal-closing {
  margin-top: 1rem;
  font-weight: 700;
  color: #2C4A5A;
  font-size: .9375rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44, 74, 90, 0.1);
}
.modal-note {
  margin-top: .75rem;
  font-size: .8125rem;
  color: rgba(27, 46, 56, 0.55);
  line-height: 1.7;
}
.modal-section-label {
  font-weight: 900;
  font-size: .875rem;
  color: #2C4A5A;
  margin-top: 1.75rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(232, 163, 23, 0.3);
}

/* Before / After */
.before-after {
  display: grid;
  gap: .75rem;
}
.before-after > div {
  padding: .875rem 1rem;
  border-radius: .75rem;
  background: rgba(44, 74, 90, 0.04);
  font-size: .875rem;
  color: rgba(27, 46, 56, 0.85);
  line-height: 1.6;
}
.ba-tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 900;
  letter-spacing: .05em;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: rgba(44, 74, 90, 0.12);
  color: #2C4A5A;
  margin-right: .625rem;
  vertical-align: middle;
}
.ba-tag-after {
  background: #E8A317;
  color: #1B2E38;
}

/* Program list */
.program-list {
  display: grid;
  gap: .875rem;
}
.program-list dt {
  font-weight: 700;
  font-size: .875rem;
  color: #1B2E38;
}
.program-list dd {
  font-size: .8125rem;
  color: rgba(27, 46, 56, 0.65);
  margin-top: .125rem;
  line-height: 1.6;
}

/* Bullet list */
.bullet-list {
  display: grid;
  gap: .625rem;
}
.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: .875rem;
  color: rgba(27, 46, 56, 0.8);
  line-height: 1.7;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #E8A317;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 1.125rem;
  border-left: 2px solid rgba(232, 163, 23, 0.35);
  padding-left: 1.25rem;
  margin-bottom: .5rem;
}
.timeline li {
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.5625rem;
  top: .3rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #E8A317;
  box-shadow: 0 0 0 3px #ffffff;
}
.timeline-year {
  display: block;
  font-weight: 900;
  font-size: .8125rem;
  color: #D9861A;
  margin-bottom: .2rem;
}
.timeline-text {
  display: block;
  font-size: .875rem;
  color: rgba(27, 46, 56, 0.85);
  line-height: 1.65;
}

/* Book card */
.book-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(44, 74, 90, 0.04);
  border-radius: 1rem;
  padding: 1.25rem;
}
.book-card img {
  width: 84px;
  height: auto;
  border-radius: .375rem;
  box-shadow: 0 4px 12px rgba(27, 46, 56, 0.15);
  flex-shrink: 0;
}

/* ===== Contact form ===== */
.contact-form {
  display: grid;
  gap: 1.125rem;
}
.form-field label {
  display: block;
  font-weight: 700;
  font-size: .8125rem;
  color: #2C4A5A;
  margin-bottom: .375rem;
}
.form-field .req {
  color: #D9861A;
  font-size: .6875rem;
  font-weight: 900;
  margin-left: .25rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(44, 74, 90, 0.2);
  border-radius: .625rem;
  padding: .7rem .875rem;
  font-size: .9375rem;
  font-family: inherit;
  color: #1B2E38;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #E8A317;
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.2);
}
.form-field textarea {
  resize: vertical;
  min-height: 7rem;
}
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #E8A317;
  color: #1B2E38;
  font-weight: 900;
  padding: .875rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background-color .2s ease;
  margin-top: .25rem;
}
.contact-submit:hover {
  background: #D9861A;
}

/* ===== Shared modal open/close transition ===== */
#modal-overlay {
  opacity: 0;
  transition: opacity .25s ease;
}
#modal-overlay.is-open {
  opacity: 1;
}
.modal-panel {
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
#modal-overlay.is-open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
