:root {
  --ink: #2f261f;
  --muted: #7a6758;
  --line: #ead8c7;
  --surface: #ffffff;
  --surface-soft: #fff8f1;
  --brand: #d96216;
  --brand-dark: #a9430b;
  --accent: #f59e0b;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --shadow: 0 14px 34px rgba(84, 45, 20, 0.10);
  --radius: 14px;
  --content: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
}

.site-brand-main {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-brand-sub {
  margin-top: 3px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 700;
}

.global-nav a {
  padding: 10px 8px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a.is-current {
  color: var(--brand-dark);
  background: #fff1e5;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #a9430b 0%, #d96216 55%, #f28a2c 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -110px;
  top: -190px;
  border: 76px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 72px 62px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: #ffead6;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 3.8rem);
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #fff5ec;
  font-size: 1rem;
  font-weight: 600;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  padding-block: 64px 72px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.section-kicker {
  color: var(--brand);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.3;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.news-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.news-list time {
  display: block;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.news-list p {
  margin: 4px 0 0;
  line-height: 1.65;
}

.news-list-large {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(84, 45, 20, 0.04);
}

.text-link {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.office-panel {
  align-self: start;
  position: sticky;
  top: 106px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.office-address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

.office-address p {
  margin: 3px 0;
}

.office-address strong {
  color: var(--ink);
}

.office-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.quick-links {
  padding-block: 64px 80px;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-card {
  min-height: 110px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(84, 45, 20, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-2px);
  border-color: #e6a978;
  box-shadow: var(--shadow);
}

.guide-no {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.guide-title {
  font-size: 1.02rem;
  font-weight: 800;
}

.guide-arrow {
  color: var(--brand);
  font-size: 1.3rem;
}

.site-footer {
  color: #f8e7da;
  background: #4b2b1a;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding-block: 34px;
  font-size: 0.84rem;
}

.footer-inner p {
  margin: 4px 0;
}

.copyright {
  align-self: end;
  color: #d8bca8;
  text-align: right;
}

.mobile-only {
  display: none;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .global-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    padding: 10px 12px;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .office-panel {
    position: static;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .header-inner {
    min-height: 68px;
  }

  .site-brand-main {
    font-size: 0.92rem;
  }

  .site-brand-sub {
    font-size: 0.72rem;
  }

  .hero-inner {
    padding-block: 50px 44px;
  }

  .mobile-only {
    display: inline;
  }

  .page-grid {
    padding-block: 46px 56px;
  }

  .news-list-large {
    padding: 22px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    padding-block: 50px 60px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .copyright {
    align-self: auto;
    text-align: left;
  }
}
/* ===== Sub page / About JES ===== */
.subpage-hero .hero-inner {
  padding-block: 54px 48px;
}

.subpage-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.subpage-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #fff5ec;
  font-size: 1rem;
}

.content-wrap {
  max-width: 900px;
  padding-block: 58px 72px;
}

.content-section + .content-section {
  margin-top: 56px;
}

.content-section h2 {
  margin: 0 0 18px;
  font-size: 1.65rem;
  line-height: 1.35;
}

.content-section h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.content-section p {
  margin: 0 0 1em;
}

.info-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(84, 45, 20, 0.04);
}

.info-card + .info-card {
  margin-top: 16px;
}

.about-highlight {
  padding: 26px 28px;
  border-left: 5px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-soft);
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-list li {
  position: relative;
  padding: 15px 18px 15px 46px;
  border-top: 1px solid var(--line);
}

.activity-list li:first-child {
  border-top: 0;
}

.activity-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 15px;
  color: var(--brand);
  font-weight: 900;
}

.source-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.source-note a {
  color: var(--brand-dark);
  font-weight: 700;
}

@media (max-width: 680px) {
  .content-wrap {
    padding-block: 44px 56px;
  }

  .info-card,
  .about-highlight {
    padding: 20px;
  }

  .content-section + .content-section {
    margin-top: 44px;
  }
}
/* ===== About Our Branch / Officers ===== */
.term-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.term-card strong {
  display: block;
  font-size: 1.05rem;
}

.term-card span {
  color: var(--muted);
  font-size: .9rem;
}

.term-card a {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-weight: 800;
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.officer-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(84, 45, 20, 0.04);
}

.officer-role {
  margin: 0;
  padding: 10px 16px;
  color: #fff;
  background: var(--brand);
  font-size: .9rem;
  font-weight: 800;
}

.officer-body {
  padding: 16px 18px 18px;
}

.officer-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.officer-affiliation {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.name-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.name-list li {
  padding: 12px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.name-list li:nth-child(3n) {
  border-right: 0;
}

.name-list li:nth-last-child(-n+3) {
  border-bottom: 0;
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.document-card a {
  color: var(--brand-dark);
  font-weight: 800;
}

.document-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.document-subitems {
  margin: 10px 0 0 1.1em;
  padding: 0;
}

.document-subitems li + li {
  margin-top: 6px;
}

@media (max-width: 760px) {
  .officer-grid,
  .name-list {
    grid-template-columns: 1fr;
  }

  .name-list li,
  .name-list li:nth-child(3n),
  .name-list li:nth-last-child(-n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .name-list li:last-child {
    border-bottom: 0;
  }

  .term-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* ===== Information / News page ===== */
.news-page-list {
  display: grid;
  gap: 18px;
}

.news-page-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(84, 45, 20, 0.04);
}

.news-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.news-page-head h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
}

.news-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}

.news-page-body {
  padding: 20px 22px 22px;
}

.news-page-body p:first-child {
  margin-top: 0;
}

.news-meta {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 7px 14px;
  margin: 16px 0;
}

.news-meta dt {
  color: var(--muted);
  font-weight: 800;
}

.news-meta dd {
  margin: 0;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--brand-dark);
  font-weight: 800;
}

.news-contact {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .9rem;
}

.news-contact a {
  color: var(--brand-dark);
  font-weight: 700;
}

.archive-group {
  display: grid;
  gap: 10px;
}

.archive-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.archive-item summary {
  position: relative;
  padding: 15px 44px 15px 18px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.archive-item summary::-webkit-details-marker {
  display: none;
}

.archive-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 800;
}

.archive-item[open] summary::after {
  content: "−";
}

.archive-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.archive-body p:first-child {
  margin-top: 16px;
}

.old-info-link {
  margin-top: 20px;
  text-align: right;
}

.old-info-link a {
  color: var(--brand-dark);
  font-weight: 800;
}

@media (max-width: 680px) {
  .news-page-head {
    flex-direction: column;
    gap: 6px;
  }

  .news-date {
    white-space: normal;
  }

  .news-meta {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .news-meta dd + dt {
    margin-top: 8px;
  }
}
/* ===== Compact information list ===== */
.info-list-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--brand);
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-list-table th,
.info-list-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.info-list-table th {
  background: var(--surface-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.info-list-table th:first-child,
.info-list-table td:first-child {
  width: 10.5em;
  white-space: nowrap;
  color: var(--muted);
}

.info-list-table td a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.info-list-table td a:hover,
.info-list-table td a:focus-visible {
  text-decoration: underline;
}

.info-list-table tr:hover td {
  background: #fffaf5;
}

.info-list-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 680px) {
  .info-list-table,
  .info-list-table tbody,
  .info-list-table tr,
  .info-list-table th,
  .info-list-table td {
    display: block;
    width: 100%;
  }

  .info-list-table thead {
    display: none;
  }

  .info-list-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .info-list-table td {
    padding: 3px 0;
    border: 0;
  }

  .info-list-table td:first-child {
    width: auto;
    font-size: 0.8rem;
    font-weight: 700;
  }

  .info-list-table tr:hover td {
    background: transparent;
  }
}
/* ===== Conference index ===== */
.conference-list-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--brand);
  font-size: 0.82rem;
  line-height: 1.45;
}

.conference-list-table th,
.conference-list-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.conference-list-table th {
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.conference-list-table td:nth-child(1) {
  width: 5.5em;
  white-space: nowrap;
  font-weight: 800;
}

.conference-list-table td:nth-child(2) {
  width: 8em;
  white-space: nowrap;
}

.conference-list-table td:nth-child(3) {
  width: 11em;
}

.conference-list-table a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.conference-list-table a:hover,
.conference-list-table a:focus-visible {
  text-decoration: underline;
}

.conference-list-table tr:hover td {
  background: #fffaf5;
}

.conference-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.award-link-box {
  margin-bottom: 22px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.award-link-box a {
  color: var(--brand-dark);
  font-weight: 800;
}

@media (max-width: 760px) {
  .conference-list-table,
  .conference-list-table tbody,
  .conference-list-table tr,
  .conference-list-table th,
  .conference-list-table td {
    display: block;
    width: 100%;
  }

  .conference-list-table thead {
    display: none;
  }

  .conference-list-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .conference-list-table td,
  .conference-list-table td:nth-child(1),
  .conference-list-table td:nth-child(2),
  .conference-list-table td:nth-child(3) {
    width: auto;
    padding: 2px 0;
    border: 0;
    white-space: normal;
  }

  .conference-list-table td:nth-child(1) {
    color: var(--brand-dark);
    font-size: 1rem;
  }

  .conference-list-table td:nth-child(2) {
    font-weight: 700;
  }

  .conference-list-table tr:hover td {
    background: transparent;
  }
}
/* ===== Rules & Regulations table ===== */
.rules-intro {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.rules-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--brand);
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.5;
}

.rules-table th,
.rules-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rules-table th {
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.rules-table td:first-child {
  width: 8.5em;
  white-space: nowrap;
  font-weight: 800;
  color: var(--brand-dark);
}

.rules-table td:nth-child(3) {
  width: 11.5em;
  white-space: nowrap;
  color: var(--muted);
}

.rules-table td:nth-child(4) {
  width: 19em;
}

.rules-table a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.rules-table a:hover,
.rules-table a:focus-visible {
  text-decoration: underline;
}

.rules-sublist {
  margin: 0;
  padding-left: 1.2em;
}

.rules-sublist li + li {
  margin-top: 6px;
}

.rules-sublist span {
  color: var(--muted);
  font-size: 0.78rem;
}

.rules-table tr:hover td {
  background: #fffaf5;
}

@media (max-width: 760px) {
  .rules-table,
  .rules-table tbody,
  .rules-table tr,
  .rules-table th,
  .rules-table td {
    display: block;
    width: 100%;
  }

  .rules-table thead {
    display: none;
  }

  .rules-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .rules-table td,
  .rules-table td:first-child,
  .rules-table td:nth-child(3),
  .rules-table td:nth-child(4) {
    width: auto;
    padding: 3px 0;
    border: 0;
    white-space: normal;
  }

  .rules-table td:first-child {
    margin-bottom: 3px;
  }

  .rules-table tr:hover td {
    background: transparent;
  }
}
