@charset "UTF-8";
/* ==========================================================================
   東海実験動物研究会 共通スタイルシート
   ネイビー × ゴールド × レッドアクセントの配色システム
   ========================================================================== */

:root {
  --navy-darkest: #071630;
  --navy: #10233f;
  --navy-light: #16304f;
  --gold: #c9a24e;
  --gold-soft: #e7d3a1;
  --red: #b8302b;
  --green: #4c7a4f;
  --gray-navy: #5d6b80;

  --bg-cream: #f3eee2;
  --white: #ffffff;
  --border: #dcd5c8;
  --text: #26313f;
  --text-muted: #7c8797;

  --radius: 3px;
  --radius-lg: 4px;
  --shadow: 0 1px 3px rgba(7, 22, 48, 0.14);
  --shadow-sm: 0 1px 2px rgba(7, 22, 48, 0.1);

  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg-cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------------------- */
/* Skip link / focus                                                      */
/* ---------------------------------------------------------------------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-darkest);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------- */
/* Top bar                                                                 */
/* ---------------------------------------------------------------------- */
.top-bar {
  background: var(--navy-darkest);
  color: rgba(255, 255, 255, .82);
  font-size: .76rem;
  letter-spacing: .03em;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .45rem;
  padding-bottom: .45rem;
  flex-wrap: wrap;
  gap: .4rem;
}
.top-bar .brand-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold);
}
.top-bar .brand-line .dot { color: var(--gold); }
.top-bar .utility-links { display: flex; gap: 1.2rem; }
.top-bar .utility-links a { opacity: .9; }
.top-bar .utility-links a:hover { color: var(--gold-soft); opacity: 1; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
  background: var(--navy);
  background-image: linear-gradient(115deg, var(--navy-light) 0%, var(--navy) 55%, var(--navy-darkest) 100%);
  border-top: 1px solid rgba(201, 162, 78, 0.45);
  border-bottom: 1px solid rgba(201, 162, 78, 0.45);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}
.logo-ring {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.logo-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 78, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.site-title h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.site-title p {
  margin: .35rem 0 0;
  color: #b1bce6;
  font-family: var(--font-head);
  font-size: .74rem;
  letter-spacing: .04em;
}

/* ---------------------------------------------------------------------- */
/* Main navigation                                                        */
/* ---------------------------------------------------------------------- */
.main-nav {
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 162, 78, 0.45);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav ul {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
}
.main-nav li { flex: 1; border-right: 1px solid rgba(255, 255, 255, .14); }
.main-nav li:last-child { border-right: none; }
.main-nav a {
  display: block;
  text-align: center;
  padding: 1rem .5rem;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #dcdfe4;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--gold-soft); }
.main-nav a.is-current {
  color: var(--gold-soft);
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* Mobile nav toggle (progressive enhancement, no JS required to view) */
.nav-toggle { display: none; }

/* ---------------------------------------------------------------------- */
/* Page banner (sub pages)                                                */
/* ---------------------------------------------------------------------- */
.page-banner {
  background: var(--navy);
  background-image: linear-gradient(115deg, var(--navy-light) 0%, var(--navy) 55%, var(--navy-darkest) 100%);
  color: #fff;
  padding: 1.75rem 0;
}
.page-banner .breadcrumb {
  font-size: .78rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: .6rem;
}
.page-banner .breadcrumb a:hover { color: var(--gold-soft); }
.page-banner h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .7rem;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.page-banner h2 .eyebrow {
  font-family: var(--font-base);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--gold);
}

/* ---------------------------------------------------------------------- */
/* Layout: main + sidebar                                                 */
/* ---------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding: 2rem 0 3rem;
}
.page-layout.with-sidebar {
  grid-template-columns: 1fr 300px;
  align-items: start;
}

/* ---------------------------------------------------------------------- */
/* Hero card (top page event notice)                                      */
/* ---------------------------------------------------------------------- */
.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
  margin-bottom: 2rem;
}
.hero-card .num-block {
  flex-shrink: 0;
  width: 150px;
  background: var(--navy-darkest);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.3rem 1rem;
  text-align: center;
}
.hero-card .num-block .label-small { font-size: .8rem; letter-spacing: .1em; }
.hero-card .num-block .num {
  font-family: var(--font-head);
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  margin: .1rem 0;
}
.hero-card .hero-body {
  flex: 1;
  padding: 1.5rem 1.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.tag-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .22rem .6rem;
  border-radius: 2px;
  margin-bottom: .55rem;
}
.hero-body h3 {
  margin: 0 0 .8rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-info {
  display: flex;
  gap: 1.9rem;
  flex-wrap: wrap;
}
.hero-info .info-item .info-label {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .03em;
  margin-bottom: .15rem;
}
.hero-info .info-item .info-value {
  font-family: "Hina Mincho", var(--font-head);
  font-weight: 400;
  letter-spacing: .03em;
  color: var(--navy);
  font-size: 1.02rem;
}
.btn {
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  transition: background .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: none; }
.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-solid {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}
.btn-solid:hover { background: var(--navy-light); }
.btn-block { display: block; width: 100%; padding: .85rem; }

/* ---------------------------------------------------------------------- */
/* Section heading                                                        */
/* ---------------------------------------------------------------------- */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: 1rem;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
}
.section-heading .eyebrow {
  font-size: .7rem;
  color: var(--red);
  letter-spacing: .1em;
  font-weight: 700;
}
.section-heading .rule {
  flex: 1 1 40px;
  min-width: 40px;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0 40px, var(--border) 40px 100%);
}
.section-heading .note {
  flex-shrink: 0;
  font-size: .74rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------- */
/* News list                                                               */
/* ---------------------------------------------------------------------- */
.news-list { border-top: 1px dashed var(--border); }
.news-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px dashed var(--border);
}
.news-row time {
  color: var(--text-muted);
  font-size: .85rem;
  width: 90px;
  flex-shrink: 0;
}
.chip {
  flex-shrink: 0;
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  padding: .22rem .55rem;
  border-radius: 3px;
  width: 52px;
  text-align: center;
}
.chip-event { background: var(--red); }
.chip-admin { background: var(--green); }
.chip-report { background: var(--gray-navy); }
.news-row a { flex: 1; font-size: .93rem; }
.news-row a:hover { color: var(--red); }
.news-more { text-align: right; margin-top: 1rem; }
.news-more a { font-size: .85rem; font-weight: 600; color: var(--navy); }
.news-more a:hover { color: var(--red); }

/* ---------------------------------------------------------------------- */
/* Sidebar                                                                 */
/* ---------------------------------------------------------------------- */
.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
}
.side-card h3 {
  margin: 0 0 .7rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--bg-cream);
  padding-bottom: .5rem;
}
.side-card p { margin: .25rem 0; font-size: .85rem; }

/* Mini contact form (sidebar) */
.contact-form label {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .9rem;
}
.contact-form label span {
  display: block;
  margin-bottom: .3rem;
  color: var(--navy);
  font-weight: 600;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-family: var(--font-base);
  font-size: .85rem;
  color: var(--text);
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-cream);
  resize: vertical;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.contact-form .btn { border: none; cursor: pointer; width: 100%; }
.contact-form .form-note {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .6rem;
}
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: .8rem;
}
.quick-links a {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: .75rem .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color .15s ease, color .15s ease;
}
.quick-links a:hover { border-color: var(--red); color: var(--red); }

/* ---------------------------------------------------------------------- */
/* Generic content blocks (sub pages)                                     */
/* ---------------------------------------------------------------------- */
.page-lead {
  font-size: .95rem;
  color: var(--text);
  margin: 0 0 2.2rem;
}

/* Purpose / numbered cards (e.g. 目的) */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.purpose-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
}
.purpose-card .purpose-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .6rem;
}
.purpose-card h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}
.purpose-card p {
  margin: 0;
  font-size: .84rem;
  color: var(--text-muted);
}

/* Bulleted activity list (e.g. 主な活動) */
.activity-list { border-top: 1px dashed var(--border); margin-bottom: 2.4rem; }
.activity-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .92rem;
}
.activity-item .bullet { color: var(--gold); font-size: .78rem; flex-shrink: 0; }

/* Info / role table (e.g. 役員) */
.role-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1rem; }
.role-table th {
  background: var(--bg-cream);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  text-align: left;
  width: 180px;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.role-table td {
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* Timeline (e.g. 沿革) */
.timeline {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 1.4rem 1.7rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: .3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--bg-cream);
}
.timeline-year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: .25rem;
}
.timeline-desc {
  font-size: .87rem;
  color: var(--text);
  line-height: 1.7;
}

/* Long-form history text + citation */
.history-text {
  font-size: .88rem;
  line-height: 1.95;
  color: var(--text);
  margin: 0 0 .8rem;
  text-align: justify;
}
.citation-note {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: right;
  margin: 0 0 2.4rem;
}

/* Founder grid (e.g. 発起人) */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1.6rem;
  margin-bottom: 1rem;
}
.founder-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .86rem;
}
.founder-item .name { font-weight: 600; color: var(--navy); }
.founder-item .affil { color: var(--text-muted); font-size: .78rem; white-space: nowrap; }

/* Articles list (e.g. 会則 第○条) */
.rules-list {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
  border-top: 1px solid var(--border);
}
.rule-item {
  display: flex;
  gap: 1.3rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.rule-item .rule-num {
  flex-shrink: 0;
  width: 72px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: .92rem;
}
.rule-item .rule-content h3 {
  margin: 0 0 .4rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
}
.rule-item .rule-content p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.85;
  color: var(--text);
}
.rule-item .rule-content ol {
  margin: .5rem 0 0;
  padding-left: 1.2rem;
  font-size: .86rem;
  line-height: 1.85;
  color: var(--text);
}

/* Numbered supplementary list (e.g. 施行細則, 附則) */
.numbered-list {
  list-style: none;
  counter-reset: item;
  margin: 0 0 2.4rem;
  padding: 0;
}
.numbered-list > li {
  position: relative;
  counter-increment: item;
  padding: .7rem 0 .7rem 1.8rem;
  border-bottom: 1px dashed var(--border);
  font-size: .86rem;
  line-height: 1.85;
  color: var(--text);
}
.numbered-list > li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: .7rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
}
.numbered-list .contact-block {
  margin-top: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Events history table (e.g. 開催情報) */
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
.events-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .86rem;
}
.events-table thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: left;
  padding: .7rem 1rem;
  white-space: nowrap;
}
.events-table tbody td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.events-table tbody tr:nth-child(even) { background: rgba(201, 162, 78, .06); }
.events-table tbody tr:hover { background: rgba(201, 162, 78, .14); }
.events-table td.round {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.events-table td.date {
  white-space: nowrap;
  color: var(--text-muted);
  font-family: "Hina Mincho", var(--font-head);
  font-size: .92rem;
}

/* Link list (e.g. リンク) */
.link-list {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
  border-top: 1px dashed var(--border);
}
.link-list li {
  border-bottom: 1px dashed var(--border);
}
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem .2rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}
.link-list a:hover { color: var(--red); }
.link-list a .arrow { color: var(--gold); font-size: .8rem; flex-shrink: 0; }
.link-list .no-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem .2rem;
  font-size: .9rem;
  color: var(--text-muted);
}

.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.7rem 1.9rem;
  margin-bottom: 1.2rem;
}
.content-card h3 {
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--bg-cream);
}
.content-card table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.content-card table th, .content-card table td {
  text-align: left;
  padding: .7rem .5rem;
  border-bottom: 1px solid var(--border);
}
.content-card table th { color: var(--navy); width: 30%; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-darkest);
  color: rgba(255, 255, 255, .82);
  margin-top: 2rem;
}
.footer-top {
  padding: 2.6rem 0 1.8rem;
}
.footer-org h4 { color: var(--gold); font-family: var(--font-head); font-weight: 700; margin: 0 0 .6rem; font-size: 1.02rem; }
.footer-org p { margin: .2rem 0; font-size: .68rem; color: #7c86ad; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-content: flex-start; }
.footer-nav a { font-size: .85rem; color: #b1bce6; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
  padding: 1rem;
  font-size: .74rem;
  color: #8891b8;
}
.footer-bottom a { color: #8891b8; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 860px) {
  .page-layout.with-sidebar { grid-template-columns: 1fr; }
  .main-nav ul { flex-wrap: wrap; }
  .main-nav li { flex: 1 1 33%; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .hero-card { flex-direction: column; }
  .hero-card .num-block { width: 100%; flex-direction: row; gap: .6rem; padding: 1rem; }
  .hero-body { flex-direction: column; align-items: flex-start; }
  .purpose-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .rule-item { flex-direction: column; gap: .3rem; }
  .rule-item .rule-num { width: auto; }
}
@media (max-width: 560px) {
  .site-title h1 { font-size: 1.2rem; letter-spacing: .06em; }
  .main-nav li { flex: 1 1 50%; }
  .quick-links { grid-template-columns: 1fr; }
  .top-bar .container { flex-direction: column; align-items: flex-start; }
}
