/* ===========================
   Base
=========================== */
:root{
  --bg: #ffffff;
  --bg-muted: #f6f7f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, .08);

  /* academic + consortium feel */
  --primary: #0b3a6a;   /* deep blue */
  --primary-2: #0f4c81;
  --accent: #b48a2c;    /* restrained gold */
  --ok: #0f766e;        /* teal */
  --warn: #b45309;      /* amber */
  --radius: 16px;
  --radius-sm: 12px;

  --container: 1120px;
  --pad: 24px;

  --font-sans: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Arial, sans-serif;
  --font-serif: ui-serif, "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a{ color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible{
  outline: 3px solid rgba(180, 138, 44, .35);
  outline-offset: 3px;
}

.container{
  width: min(var(--container), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus{ left: 12px; z-index: 9999; }

/* ===========================
   Topbar & Header
=========================== */
.topbar{
  background: #0b1220;
  color: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.topbar__tagline{
  margin: 0;
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.link-muted{ color: rgba(255,255,255,.82); }
.link-muted:hover{ color: #fff; }
.dot{ opacity: .6; }

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand__link{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark{
  width: 42px; height: 42px;
  display: inline-grid; place-items: center;
}
.brand__mark img{
  width: 42px; height: 42px; display: block;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(11, 58, 106, .18);
}
.brand__text{ display: grid; }
.brand__name{
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: .02em;
}
.brand__sub{
  font-size: 12px;
  color: var(--muted);
}

.nav{
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav__link{
  font-size: 14px;
  color: #0f172a;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav__link:hover{ background: rgba(15,23,42,.04); }
.nav__link[aria-current="page"]{
  background: rgba(11,58,106,.08);
  border: 1px solid rgba(11,58,106,.16);
}

.header__cta{
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===========================
   Buttons & Badges
=========================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 58, 106, .22);
}
.btn--primary:hover{ box-shadow: 0 14px 28px rgba(11, 58, 106, .28); }

.btn--ghost{
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover{ background: rgba(15,23,42,.03); }

.btn--secondary{
  background: rgba(11,58,106,.08);
  border-color: rgba(11,58,106,.16);
  color: var(--primary);
}
.btn--secondary:hover{ background: rgba(11,58,106,.11); }

.btn--block{ width: 100%; }

.badge{
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.badge--info{ color: var(--primary); background: rgba(11,58,106,.08); border-color: rgba(11,58,106,.16); }
.badge--success{ color: var(--ok); background: rgba(15,118,110,.08); border-color: rgba(15,118,110,.16); }
.badge--warn{ color: #b45309; background: rgba(180,83,9,.08); border-color: rgba(180,83,9,.16); }

/* ===========================
   Hero
=========================== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 56px 0 28px;
}
.hero__inner{
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: start;
}
.hero__content{ position: relative; z-index: 1; }
.hero__bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 15% 15%, rgba(11,58,106,.12), transparent 60%),
    radial-gradient(700px 420px at 85% 20%, rgba(180,138,44,.10), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfbfd 45%, #ffffff);
  pointer-events: none;
}

.eyebrow{
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid rgba(11,58,106,.16);
  background: rgba(11,58,106,.06);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.hero__title{
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.2;
  margin: 10px 0 12px;
  letter-spacing: .02em;
}
.hero__lead{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}
.hero__buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.hero__meta{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.meta-card{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 12px;
  box-shadow: var(--shadow-sm);
}
.meta-card__label{ margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.meta-card__value{ margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }

.panel{
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.panel__title{ margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.panel__subtitle{ margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.panel__list{ list-style: none; padding: 0; margin: 12px 0 12px; display: grid; gap: 10px; }
.panel__item{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(246,247,249,.7);
}
.panel__link{ font-weight: 700; }
.panel__link:hover{ text-decoration: underline; }
.panel__footer{ display: grid; gap: 10px; margin-top: 10px; }
.panel__note{ margin: 0; font-size: 12px; color: var(--muted); }

/* ===========================
   Sections / Grid / Cards
=========================== */
.section{ padding: 56px 0; }
.section--muted{ background: var(--bg-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head{ display: grid; gap: 8px; margin-bottom: 18px; }
.section__title{ margin: 0; font-family: var(--font-serif); font-size: 24px; letter-spacing: .02em; }
.section__desc{ margin: 0; color: var(--muted); max-width: 72ch; }
.section__actions{ margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

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

.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card--accent{
  border-color: rgba(11,58,106,.16);
  background: linear-gradient(180deg, rgba(11,58,106,.06), #fff 60%);
}
.card__head{ display: grid; gap: 6px; margin-bottom: 10px; }
.card__title{ margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.card__meta{ margin: 0; font-size: 13px; color: var(--muted); }
.card__text{ margin: 0; color: var(--muted); }
.card__foot{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.card--link{
  display: block;
  position: relative;
  transition: transform .1s ease, box-shadow .2s ease;
}
.card--link:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.card__icon{
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(11,58,106,.08);
  border: 1px solid rgba(11,58,106,.16);
  margin-bottom: 10px;
}
.card__arrow{
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(15,23,42,.45);
  font-weight: 900;
}

/* ===========================
   Lists / Tables
=========================== */
.list{ list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list__item{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.list__date{ font-size: 12px; color: var(--muted); font-weight: 700; }
.list__link{ font-weight: 700; }
.list__link:hover{ text-decoration: underline; }

.bullets{ margin: 0; padding-left: 18px; color: var(--muted); }
.bullets li{ margin: 8px 0; }

.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table th{
  background: rgba(11,58,106,.06);
  font-weight: 900;
}
.table tr:last-child td{ border-bottom: none; }
.table a{ color: var(--primary); text-decoration: underline; text-decoration-color: rgba(11,58,106,.25); }
.table a:hover{ text-decoration-color: rgba(11,58,106,.55); }

/* ===========================
   Subpage layout
=========================== */
.page{ padding: 28px 0 56px; }
.breadcrumb{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}
.breadcrumb a{
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(11,58,106,.25);
}
.breadcrumb a:hover{ text-decoration-color: rgba(11,58,106,.55); }

.page-hero{
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(11,58,106,.08), rgba(180,138,44,.05));
  border: 1px solid rgba(11,58,106,.14);
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.page-hero__title{
  margin: 0 0 6px;
  font-family: var(--font-serif);
  letter-spacing: .02em;
  font-size: 26px;
}
.page-hero__desc{
  margin: 0;
  color: var(--muted);
  max-width: 90ch;
}

.prose{
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.prose h2{ font-family: var(--font-serif); letter-spacing: .02em; margin: 18px 0 10px; }
.prose h3{ margin: 14px 0 8px; }
.prose p{ color: var(--muted); }

.doc{
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.75;
  background: #0b1220;
  color: rgba(255,255,255,.9);
  border-radius: 14px;
  padding: 16px;
  overflow: auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,.08);
}

.doc-light{
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.75;
  background: #ffffff;
  color: var(--text);
  border-radius: 14px;
  padding: 16px;
  overflow: auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.note{
  margin: 10px 0 0;
  padding: 10px 12px;
  background: rgba(11,58,106,.06);
  border: 1px solid rgba(11,58,106,.14);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ===========================
   Footer
=========================== */
.footer{
  border-top: 1px solid var(--line);
  background: #0b1220;
  color: rgba(255,255,255,.88);
}
.footer__inner{
  padding: 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.footer__name{
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: .02em;
}
.footer__meta{
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.68);
}
.footer__right{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__right a{ color: rgba(255,255,255,.78); }
.footer__right a:hover{ color: #fff; }

/* ===========================
   Responsive
=========================== */
.br-sm{ display: none; }

@media (max-width: 980px){
  .header__inner{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
  }
  .brand{ grid-area: brand; }
  .header__cta{ grid-area: cta; }
  .nav{
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
  }
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__meta{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .br-sm{ display: inline; }
  .topbar__inner{ flex-direction: column; align-items: flex-start; }
  .header__cta{ gap: 8px; }
  .list__item{ grid-template-columns: 1fr; gap: 6px; }
}

.yearcard{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  margin: 14px 0;
}
.yearcard__title{
  margin: 0 0 8px;
  font-size: 16px;
}
.yearcard__desc{
  margin: 0;
  color: var(--text);
  line-height: 1.85;
}


/* ---------- News (Top page) ---------- */
.news-section{
  padding: 34px 0 48px;
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(11,58,106,.05), transparent 60%),
    radial-gradient(800px 380px at 90% 0%, rgba(180,138,44,.05), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfcfe);
}
.news-board{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.news-board::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(11,58,106,.07), transparent 60%),
    radial-gradient(600px 340px at 110% 0%, rgba(180,138,44,.08), transparent 58%);
  pointer-events:none;
}
.news-board__head{
  position: relative;
  z-index: 1;
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.news-board__title{
  margin: 0;
  font-size: 20px;
  font-family: var(--font-serif);
  letter-spacing: .01em;
}
.news-board__sub{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.news-board__updated{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.news-list{
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-item{
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.78);
}
.news-item:first-child{ border-top: none; }
.news-item__date{
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}
.news-item__main{
  min-width: 0;
}
.news-item__link,
.news-item__text{
  display: inline-block;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  line-height: 1.5;
}
.news-item__link:hover{ text-decoration: underline; text-underline-offset: 3px; }
.news-item__link:focus-visible{
  outline: 3px solid rgba(11,58,106,.28);
  outline-offset: 4px;
  border-radius: 10px;
}
.news-item__tag{
  justify-self: end;
  font-size: 12px;
  color: var(--primary);
  background: rgba(11,58,106,.08);
  border: 1px solid rgba(11,58,106,.16);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.news-item:hover{
  background: rgba(246,247,249,.92);
}
.news-noscript{
  padding: 14px 18px;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px){
  .news-board__head{
    flex-direction: column;
    align-items: flex-start;
  }
  .news-item{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .news-item__tag{
    justify-self: start;
  }
}

/* ---------- Year plan cards (Activities) ---------- */
.yearcard{
  background:
    radial-gradient(700px 280px at 12% -10%, rgba(11,58,106,.06), transparent 58%),
    radial-gradient(520px 240px at 110% 0%, rgba(180,138,44,.07), transparent 55%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  margin: 14px 0;
}
.yearcard__kicker{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(11,58,106,.06);
  border: 1px solid rgba(11,58,106,.14);
  padding: 6px 10px;
  border-radius: 999px;
}
.yearcard__title{
  margin: 10px 0 10px;
  font-size: 16px;
  font-family: var(--font-serif);
}
.yearcard__desc{
  margin: 0;
  color: var(--text);
  line-height: 1.95;
}
.yearcard__themes{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
}
.yearcard__themes li{ margin: 6px 0; }
