:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #65706c;
  --paper: #f8f6ef;
  --surface: #fffdf8;
  --line: #d9dbd2;
  --line-strong: #aeb8ae;
  --green: #123f35;
  --green-2: #25665a;
  --blue: #335f7f;
  --brick: #9d4c3b;
  --gold: #d6b25c;
  --hover-wash: rgba(214, 178, 92, 0.2);
  --panel-inset: clamp(18px, 2.4vw, 30px);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

main > section,
.site-footer {
  scroll-margin-top: 96px;
}

button,
input,
select {
  font: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
  padding: 13px clamp(18px, 4vw, 56px);
  background: rgba(248, 246, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 10px);
  color: #293632;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  overflow: hidden;
  background: transparent;
  border-radius: 6px;
  text-decoration: none;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
  isolation: isolate;
}

.site-nav a::before {
  position: absolute;
  inset: 4px 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, var(--hover-wash), rgba(255, 253, 248, 0.58));
  border-radius: 6px;
  opacity: 0;
  transform: scaleX(0.82);
  transform-origin: left center;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover {
  color: var(--green-2);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(214, 178, 92, 0.12);
  box-shadow: inset 0 0 0 1px rgba(157, 76, 59, 0.12);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a:focus-visible {
  outline: 2px solid rgba(157, 76, 59, 0.45);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.portal-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 74px));
  display: grid;
  align-items: center;
  background-image: url("/assets/images/jcc-seminar-hero.png");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.portal-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(19, 31, 27, 0.86), rgba(19, 31, 27, 0.64) 48%, rgba(19, 31, 27, 0.2)),
    linear-gradient(180deg, rgba(19, 31, 27, 0.05), rgba(19, 31, 27, 0.35));
}

.portal-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(36px, 7vw, 86px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 118px) 0;
  color: #fff;
}

.portal-hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-hero .eyebrow,
.archive-section .eyebrow,
.contact-section .eyebrow {
  color: #f2cd72;
}

.portal-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.welcome {
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  font-weight: 800;
}

.section-copy {
  max-width: 760px;
  margin: 0;
  font-size: 1.02rem;
}

.portal-hero .section-copy {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.portal-hero .section-copy p {
  margin: 0 0 8px;
}

.audience-note {
  margin: 26px 0 0;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 0.94rem;
}

.portal-links {
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.portal-links a {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 15px 48px 15px 14px;
  margin-inline: -14px;
  overflow: hidden;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  text-decoration: none;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
  isolation: isolate;
}

.portal-links a::before {
  position: absolute;
  inset: 4px 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(242, 205, 114, 0.18), rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  opacity: 0;
  transform: scaleX(0.9);
  transform-origin: left center;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.portal-links a::after {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #f2cd72;
  content: "→";
  transform: translateY(-50%);
  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.portal-links span {
  font-size: 1.02rem;
  font-weight: 800;
}

.portal-links small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.portal-links a:hover,
.portal-links a:focus-visible {
  background: rgba(242, 205, 114, 0.1);
  border-bottom-color: rgba(242, 205, 114, 0.48);
}

.portal-links a:hover::before,
.portal-links a:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.portal-links a:hover span {
  color: #f2cd72;
}

.portal-links a:hover::after,
.portal-links a:focus-visible::after {
  color: #fff;
  transform: translate(4px, -50%);
}

.portal-links a:focus-visible {
  outline: 2px solid rgba(242, 205, 114, 0.6);
  outline-offset: 3px;
}

.portal-facts {
  display: grid;
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.portal-facts .fact-item {
  padding: 11px 0;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.portal-facts .fact-item strong {
  display: inline-block;
  min-width: 4.5em;
  color: #f2cd72;
}

.notice-band {
  color: #fff;
  background: var(--green);
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
}

.notice-inner p {
  margin: 0;
}

.notice-label {
  flex: 0 0 auto;
  color: #f2cd72;
  font-size: 0.78rem;
  font-weight: 800;
}

.notice-inner a {
  margin-left: auto;
  color: #f2cd72;
  white-space: nowrap;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(66px, 8vw, 104px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}

.section-heading h2,
.archive-copy h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.feature-grid,
.membership-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.section-split {
  border-top: 1px solid var(--line);
}

.seminar-feature,
.news-panel,
.voice-card,
.faq-item {
  background: rgba(255, 253, 248, 0.72);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.seminar-feature {
  min-height: 300px;
  padding: 28px var(--panel-inset);
}

.feature-label {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.seminar-feature h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.55rem);
  line-height: 1.24;
  letter-spacing: 0;
}

.seminar-feature p {
  margin: 14px 0 0;
}

.seminar-feature .feature-meta,
.seminar-meta,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.seminar-feature .feature-meta {
  margin-top: 0;
  font-weight: 700;
}

.seminar-subtitle {
  margin: 8px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.news-panel {
  padding: 24px var(--panel-inset) 0;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 1.08rem;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.84rem;
}

.news-list {
  display: grid;
}

.news-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.news-item time {
  color: var(--muted);
  font-size: 0.88rem;
}

.news-item h4 {
  margin: 3px 0 2px;
  font-size: 1rem;
}

.news-item p {
  margin: 0;
}

.history-heading {
  align-items: start;
}

.history-note {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 14px;
  margin-bottom: 18px;
}

.search-field,
.select-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 46px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.history-status {
  min-height: 30px;
  color: var(--muted);
  font-size: 0.92rem;
}

.seminar-list {
  display: grid;
  gap: 42px;
}

.history-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 18px;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.3;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.history-toggle::after {
  width: 0.52em;
  height: 0.52em;
  content: "";
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.22s ease;
}

.history-toggle:hover,
.history-toggle:focus-visible {
  color: var(--green-2);
  background: rgba(214, 178, 92, 0.12);
  border-color: rgba(157, 76, 59, 0.32);
  box-shadow: inset 0 0 0 1px rgba(157, 76, 59, 0.1);
}

.history-toggle:focus-visible {
  outline: 2px solid rgba(157, 76, 59, 0.45);
  outline-offset: 3px;
}

.history-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.history-extra {
  height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    height 0.22s ease,
    margin-top 0.22s ease,
    opacity 0.18s ease;
}

.history-extra.is-open {
  margin-top: 42px;
  opacity: 1;
}

.history-extra-inner {
  display: grid;
  gap: 42px;
}

.history-year h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 1.18rem;
}

.history-list {
  border-top: 1px solid var(--line-strong);
}

.history-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.history-meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.history-main h4 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.history-speaker {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.history-item.cancelled .history-main h4,
.history-item.cancelled .history-meta {
  color: #7b3b2d;
}

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

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
}

.step-list {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
  border-top: 1px solid var(--line-strong);
}

.step-list li {
  position: relative;
  padding: 18px 0 18px 54px;
  border-bottom: 1px solid var(--line);
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 18px;
  left: 0;
  color: var(--green);
  content: counter(steps, decimal-leading-zero);
  font-size: 0.92rem;
  font-weight: 800;
}

.step-list h3 {
  margin: 0;
  font-size: 1rem;
}

.step-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.archive-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 56px) 0;
  color: #fff;
  border-top: 2px solid rgba(255, 255, 255, 0.45);
}

.archive-section {
  width: 100%;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background: var(--green);
}

.archive-copy p:last-child,
.contact-section p {
  max-width: 760px;
  margin: 12px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid currentColor;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary,
.archive-button {
  color: var(--green);
  background: var(--surface);
}

.button[aria-disabled="true"] {
  color: #6d7571;
  background: #ecefea;
  pointer-events: none;
}

.section-voices,
.section-faq {
  padding-top: clamp(66px, 8vw, 104px);
}

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

.voice-card {
  padding: 18px var(--panel-inset);
}

.voice-card p {
  margin: 0;
}

.voice-card cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.faq-list {
  display: grid;
  gap: clamp(32px, 5vw, 54px);
}

.faq-group-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d7ded7;
  color: var(--green);
  font-size: 1.18rem;
}

.faq-group-list {
  display: grid;
}

.faq-item {
  padding: 20px var(--panel-inset);
}

.faq-item + .faq-item {
  border-top: 0;
}

.faq-item h4 {
  margin: 0;
  font-size: 1.04rem;
}

.faq-question {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.55;
  text-align: left;
  transition: color 0.22s ease;
}

.faq-question::after {
  flex: 0 0 auto;
  margin-top: 0.17em;
  color: var(--gold);
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--green-2);
}

.faq-question:focus-visible {
  outline: 2px solid rgba(157, 76, 59, 0.45);
  outline-offset: 5px;
}

.faq-item.is-open .faq-question::after {
  color: var(--green-2);
  transform: rotate(45deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    height 0.22s ease,
    opacity 0.18s ease;
}

.faq-answer-inner {
  overflow: clip;
}

.faq-answer.is-open {
  opacity: 1;
}

.faq-answer p {
  margin: 8px 0 0;
  color: #36423d;
}

.contact-section {
  width: 100%;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  margin-top: 0;
  margin-bottom: 0;
  background: #23382f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 56px);
  color: #dbe4df;
  background: #151d1a;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: #dbe4df;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 20px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 48px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: block;
  }

  .portal-hero {
    min-height: 0;
  }

  .portal-hero-inner,
  .feature-grid,
  .membership-grid,
  .archive-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .portal-links {
    max-width: 560px;
  }

  .seminar-list,
  .voice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
  }

  html {
    scroll-padding-top: 88px;
  }

  main > section,
  .site-footer {
    scroll-margin-top: 88px;
  }

  .brand-copy span {
    font-size: 0.92rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    inset-block-start: 68px;
  }

  .portal-hero {
    background-position: 58% center;
  }

  .portal-hero-overlay {
    background:
      linear-gradient(180deg, rgba(19, 31, 27, 0.86), rgba(19, 31, 27, 0.72)),
      linear-gradient(90deg, rgba(19, 31, 27, 0.48), rgba(19, 31, 27, 0.12));
  }

  .portal-hero-inner,
  .section,
  .notice-inner {
    width: min(100% - 32px, var(--max));
  }

  .portal-hero-inner {
    padding: 56px 0 62px;
  }

  .portal-links {
    margin-top: 4px;
  }

  .notice-inner {
    align-items: start;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
  }

  .notice-inner a {
    margin-left: 0;
  }

  .section-heading {
    display: block;
  }

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

  .history-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .history-toggle {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a,
  .site-nav a::before,
  .portal-links a,
  .portal-links a::before,
  .portal-links a::after,
  .history-toggle,
  .history-toggle::after,
  .history-extra,
  .faq-question,
  .faq-question::after,
  .faq-answer {
    transition: none;
  }
}
